update
This commit is contained in:
parent
2b58dc8c8d
commit
7921440e17
3 changed files with 19 additions and 15 deletions
|
@ -12,8 +12,25 @@ HELPERS_DIR=$MAIN_DIR"/shell/helpers/ubuntu"
|
|||
. $HELPERS_DIR"/common.sh"
|
||||
. $HELPERS_DIR"/create-mysql-db-and-user.sh"
|
||||
|
||||
INSTALLATION_HELPERS_DIR=$MAIN_DIR"/installers/helpers/ubuntu"
|
||||
$INSTALLATION_HELPERS_DIR"/create-web-user.sh"
|
||||
|
||||
# Create the new phyreweb user
|
||||
|
||||
random_password="$(openssl rand -base64 32)"
|
||||
email="admin@phyrepanel.com"
|
||||
|
||||
# Create the new phyreweb user
|
||||
/usr/sbin/useradd "phyreweb" -c "$email" --no-create-home
|
||||
|
||||
# do not allow login into phyreweb user
|
||||
echo phyreweb:$random_password | sudo chpasswd -e
|
||||
|
||||
mkdir -p /etc/sudoers.d
|
||||
cp -f ./sudo/phyreweb /etc/sudoers.d/
|
||||
chmod 440 /etc/sudoers.d/phyreweb
|
||||
|
||||
|
||||
|
||||
exit
|
||||
|
||||
# Update the system
|
||||
apt update -y
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
# Generate a random password
|
||||
random_password="$(openssl rand -base64 32)"
|
||||
email="admin@phyrepanel.com"
|
||||
|
||||
# Create the new phyreweb user
|
||||
/usr/sbin/useradd "phyreweb" -c "$email" --no-create-home
|
||||
|
||||
# do not allow login into phyreweb user
|
||||
echo phyreweb:$random_password | sudo chpasswd -e
|
||||
|
||||
mkdir -p /etc/sudoers.d
|
||||
cp -f /usr/local/phyre/web/sudo/phyreweb /etc/sudoers.d/
|
||||
chmod 440 /etc/sudoers.d/phyreweb
|
Loading…
Reference in a new issue