26 lines
No EOL
402 B
Bash
26 lines
No EOL
402 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
echo "HALLO!"
|
|
echo "Starting the mongodb daemon"
|
|
/usr/bin/mongod --fork --syslog
|
|
|
|
# echo "navigating to volume /var/www"
|
|
# cd /var/www
|
|
# echo "Creating soft link"
|
|
# ln -s /opt/mysite mysite
|
|
|
|
# a2enmod headers
|
|
# service apache2 restart
|
|
|
|
# a2ensite mysite.conf
|
|
# a2dissite 000-default.conf
|
|
# service apache2 reload
|
|
|
|
if [ -z "$1" ]
|
|
then
|
|
exec npm run start:prod
|
|
else
|
|
exec "$1"
|
|
fi |