Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#!/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