# TODO: The directory of your Nextcloud data directory (outside the Nextcloud file directory)
# If your data directory is located under Nextcloud's file directory (somewhere in the web root), the data directory should not be restored separately
nextcloudDataDir="/var/nextcloud_data"
+# TODO: The service name of the webserver. Used to start/stop webserver (e.g. 'service <webserverServiceName> start')
+webserverServiceName="nginx"
# TODO: Your Nextcloud database name
nextcloudDatabase="nextcloud_db"
# TODO: Your Nextcloud database user
#
# Stop webserver
#
-echo "Stopping nginx..."
-service nginx stop
+echo "Stopping webserver..."
+service "${webserverServiceName}" stop
echo "Done"
echo
#
# Start webserver
#
-echo "Starting nginx..."
-service nginx start
+echo "Starting webserver..."
+service "${webserverServiceName}" start
echo "Done"
echo