Subversion Repositories ALCASAR

Rev

Rev 1758 | Rev 1934 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1758 Rev 1765
Line 169... Line 169...
169
		else
169
		else
170
			echo "Importing certificate $cert with private key $key and server-chain $sc"
170
			echo "Importing certificate $cert with private key $key and server-chain $sc"
171
		fi
171
		fi
172
		domainName $cert
172
		domainName $cert
173
		certImport $cert $key $sc
173
		certImport $cert $key $sc
174
		for services in chilli httpd dnsmasq dnsmasq-blackhole dnsmasq-blacklist dnsmasq-whitelist
174
		for services in chilli dnsmasq dnsmasq-blackhole dnsmasq-blacklist dnsmasq-whitelist httpd
175
		do
175
		do
176
			echo "restarting $services"; systemctl restart $services; sleep 1
176
			echo "restarting $services"; systemctl restart $services; sleep 1
177
		done
177
		done
178
		;;
178
		;;
179
	-d)
179
	-d)
180
		if [ -f "/etc/pki/tls/certs/alcasar.crt.old" -a -f "/etc/pki/tls/private/alcasar.key.old" ]
180
		if [ -f "/etc/pki/tls/certs/alcasar.crt.old" -a -f "/etc/pki/tls/private/alcasar.key.old" ]
181
		then
181
		then
182
			echo "Restoring default certificate"
182
			echo "Restoring default certificate"
183
			defaultCert
183
			defaultCert
184
			defaultNdd
184
			defaultNdd
185
			for services in chilli httpd dnsmasq dnsmasq-blackhole dnsmasq-blacklist dnsmasq-whitelist
185
			for services in chilli dnsmasq dnsmasq-blackhole dnsmasq-blacklist dnsmasq-whitelist httpd
186
			do
186
			do
187
				echo "restarting $services"; systemctl restart $services; sleep 1
187
				echo "restarting $services"; systemctl restart $services; sleep 1
188
			done
188
			done
189
		fi
189
		fi
190
		;;
190
		;;