generated from smedev/Template-for-SMEServer-Contribs-Package
* Thu Sep 30 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-12.sme
- Attempt to fix the final reload after CA creation [SME: 11192]
This commit is contained in:
11
root/secure.sh
Executable file → Normal file
11
root/secure.sh
Executable file → Normal file
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#! /bin/bash
|
||||
|
||||
owner="`id -nu`"
|
||||
|
||||
@@ -27,15 +27,16 @@ then
|
||||
echo "The file you specified does not yet exist."
|
||||
echo "Let's create it and add your first user."
|
||||
echo
|
||||
read -p "Enter a user id: " $user_id
|
||||
read -p "Enter a user id: " user_id
|
||||
|
||||
echo "Creating the '$user_id' user account..."
|
||||
htpasswd -m "$passwd_file" "$user_id" || exit
|
||||
echo "Creating the $user_id user account..."
|
||||
|
||||
htpasswd -c -m "$passwd_file" "$user_id" || exit
|
||||
|
||||
echo "Creating the administrator account..."
|
||||
echo "See the README file for more information about the"
|
||||
echo "'pkiadmin' user."
|
||||
htpasswd -c -m "$passwd_file" 'pkiadmin' || exit
|
||||
htpasswd -m "$passwd_file" 'pkiadmin' || exit
|
||||
fi
|
||||
|
||||
echo
|
||||
|
Reference in New Issue
Block a user