Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (16 sloc) 508 Bytes
#!/bin/bash
# set the config directory
monitordir="/opt/nanoNodeMonitor"
# create config dir
mkdir -p "${monitordir}"
# check for config file
if [ ! -f "${monitordir}/config.php" ]; then
echo "Config File not found, adding default."
cp "/var/www/html/modules/config.sample.php" "${monitordir}/config.php"
fi
# create config symlink
ln -s $monitordir/config.php /var/www/html/modules/config.php
# change folder rights so www-data can read
chmod 755 /opt
# start apache
apache2-foreground
You can’t perform that action at this time.