bin: Use consistent comment formatting

This commit is contained in:
Richard Hansen 2020-05-14 17:25:51 -04:00
parent be1f2152fc
commit 8e8b75be6c
5 changed files with 38 additions and 38 deletions

View file

@ -1,9 +1,9 @@
#!/bin/sh
#Move to the folder where ep-lite is installed
# Move to the folder where ep-lite is installed
cd $(dirname $0)
#Was this script started in the bin folder? if yes move out
# Was this script started in the bin folder? if yes move out
if [ -d "../bin" ]; then
cd "../"
fi
@ -16,7 +16,7 @@ do
fi
done
#Stop the script if it's started as root
# Stop the script if it's started as root
if [ "$(id -u)" -eq 0 ] && [ $ignoreRoot -eq 0 ]; then
echo "You shouldn't start Etherpad as root!"
echo "Please type 'Etherpad rocks my socks' or supply the '--root' argument if you still want to start it as root"
@ -28,12 +28,11 @@ if [ "$(id -u)" -eq 0 ] && [ $ignoreRoot -eq 0 ]; then
fi
fi
#Prepare the environment
# Prepare the environment
bin/installDeps.sh "$@" || exit 1
#Move to the node folder and start
# Move to the node folder and start
echo "Started Etherpad..."
SCRIPTPATH=$(pwd -P)
exec node "$SCRIPTPATH/node_modules/ep_etherpad-lite/node/server.js" "$@"