Lines 77-89
Link Here
|
77 |
pw usershow ${sguil_user} |
77 |
pw usershow ${sguil_user} |
78 |
fi |
78 |
fi |
79 |
fi |
79 |
fi |
80 |
for dir in %%SGUILDIR%%/certs ; do |
|
|
81 |
if [ ! -d ${confdir}/${dir} ]; then |
82 |
echo "Creating ${confdir}/${dir} ...." |
83 |
install -d -o ${sguil_user} -g ${sguil_group} \ |
84 |
-m 0750 ${confdir}/${dir} |
85 |
fi |
86 |
done |
87 |
for dir in %%PREFIX%%/lib/%%SGUILDIR%% /var/run/%%SGUILDIR%% ; do |
80 |
for dir in %%PREFIX%%/lib/%%SGUILDIR%% /var/run/%%SGUILDIR%% ; do |
88 |
if [ ! -d ${dir} ]; then |
81 |
if [ ! -d ${dir} ]; then |
89 |
echo "Creating ${dir} ...." |
82 |
echo "Creating ${dir} ...." |
Lines 123-128
Link Here
|
123 |
echo "Would you like to create certs now? (y for yes, n for no)"; read ans |
116 |
echo "Would you like to create certs now? (y for yes, n for no)"; read ans |
124 |
case "$ans" in |
117 |
case "$ans" in |
125 |
y*|Y*) |
118 |
y*|Y*) |
|
|
119 |
for dir in %%SGUILDIR%%/certs ; do |
120 |
if [ ! -d ${confdir}/${dir} ]; then |
121 |
echo "Creating ${confdir}/${dir} ...." |
122 |
install -d -o ${sguil_user} -g ${sguil_group} \ |
123 |
-m 0750 ${confdir}/${dir} |
124 |
fi |
125 |
done |
126 |
echo -e "\033[1mFirst we need to create a password-protected CA cert." |
126 |
echo -e "\033[1mFirst we need to create a password-protected CA cert." |
127 |
echo "" |
127 |
echo "" |
128 |
echo -e "\033[0m(The Common Name should be the FQHN of your squil server.)" |
128 |
echo -e "\033[0m(The Common Name should be the FQHN of your squil server.)" |