Subversion Repositories ALCASAR

Rev

Rev 2813 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2813 Rev 2850
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#
2
#
3
# $Id: alcasar-importcert.sh 2813 2020-04-26 21:26:32Z rexy $
3
# $Id: alcasar-importcert.sh 2850 2020-07-15 22:24:44Z rexy $
4
#
4
#
5
# alcasar-importcert.sh
5
# alcasar-importcert.sh
6
# by Raphaël, Hugo, Clément, Bettyna & rexy
6
# by Raphaël, Hugo, Clément, Bettyna & rexy
7
#
7
#
8
# This script is distributed under the Gnu General Public License (GPL)
8
# This script is distributed under the Gnu General Public License (GPL)
Line 53... Line 53...
53
	echo "fqdn=$fqdn hostname=$hostname domain=$domain"
53
	echo "fqdn=$fqdn hostname=$hostname domain=$domain"
54
	#check fqdn format
54
	#check fqdn format
55
	if [[ "$fqdn" != "" && "$domain" != "" ]]; then
55
	if [[ "$fqdn" != "" && "$domain" != "" ]]; then
56
		$SED "s/^HOSTNAME=.*/HOSTNAME=$hostname/g" /usr/local/etc/alcasar.conf
56
		$SED "s/^HOSTNAME=.*/HOSTNAME=$hostname/g" /usr/local/etc/alcasar.conf
57
		$SED "s/^DOMAIN=.*/DOMAIN=$domain/g" /usr/local/etc/alcasar.conf
57
		$SED "s/^DOMAIN=.*/DOMAIN=$domain/g" /usr/local/etc/alcasar.conf
58
#		/usr/local/bin/alcasar-conf.sh --apply
58
		/usr/local/bin/alcasar-conf.sh --apply
59
	fi
59
	fi
60
}
60
}
61
 
61
 
62
function certImport()
62
function certImport()
63
{
63
{