Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,6 @@ then
mkdir -p data
touch data/database.sqlite
fi
echo "Needing sudo password to give permission to database file"

read -p "Webserver user [www-data]: " webuser
if [ -z $webuser ]
then
webuser=www-data
fi

sudo chmod 775 data/database.sqlite
sudo chown $webuser:$webuser data
sudo chown $webuser:$webuser data/database.sqlite
fi

# Run php script
Expand All @@ -63,3 +52,15 @@ php bin/migrate
echo ""
echo "Creating admin user, please fill the following data with the administrator credentials"
php bin/adduser

echo "Needing sudo password to give permission to database file"

read -p "Webserver user [www-data]: " webuser
if [ -z $webuser ]
then
webuser=www-data
fi

sudo chmod 775 data/database.sqlite
sudo chown $webuser:$webuser data
sudo chown $webuser:$webuser data/database.sqlite
Loading