Revert "fix adduser error (#595)" (#598)

This reverts commit c8ab757ffe.
This commit is contained in:
Daniel Hansson 2018-08-05 16:56:56 +02:00 committed by GitHub
parent c8ab757ffe
commit 411da84e22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View File

@ -153,7 +153,7 @@ Please create a user with sudo permissions and the run this command:
sudo -u [user-with-sudo-permissions] sudo bash /var/scripts/nextcloud-startup-script.sh
We will do this for you when you hit OK."
run_static_script adduser nextcloud-startup-script
run_static_script adduser $SCRIPTS/nextcloud-startup-script.sh
else
msg_box "You probably see this message if the user 'ncadmin' does not exist on the system,
which could be the case if you are running directly from the scripts and not the VM.

View File

@ -66,7 +66,7 @@ ram_check 2 Nextcloud
cpu_check 1 Nextcloud
# Create new current user
run_static_script adduser nextcloud_install_production
run_static_script adduser nextcloud_install_production.sh
# Check distrobution and version
check_distro_version

View File

@ -34,7 +34,6 @@ The preferred user is 'ncadmin'."
do
sudo passwd "$NEWUSER" && break
done
download_static_script "$1"
sudo -u "$NEWUSER" sudo bash "$SCRIPTS"/"$1".sh
sudo -u "$NEWUSER" sudo bash "$1"
fi
fi