|
@@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
# Check if config exists. If not, copy in the sample config
|
|
# Check if config exists. If not, copy in the sample config
|
|
|
if [ -f /config/proxy-config.conf ]; then
|
|
if [ -f /config/proxy-config.conf ]; then
|
|
|
- echo "Using existing config file."
|
|
|
|
|
|
|
+ echo "Using saved config file."
|
|
|
else
|
|
else
|
|
|
echo "Creating config from template."
|
|
echo "Creating config from template."
|
|
|
mv /etc/apache2/000-default.conf /config/proxy-config.conf
|
|
mv /etc/apache2/000-default.conf /config/proxy-config.conf
|
|
@@ -20,3 +20,19 @@ else
|
|
|
# crontab /config/crons.conf
|
|
# crontab /config/crons.conf
|
|
|
# cron
|
|
# cron
|
|
|
fi
|
|
fi
|
|
|
|
|
+
|
|
|
|
|
+# Check for OSSN DB config and add
|
|
|
|
|
+if [ -f /config/ossn.config.db ]; then
|
|
|
|
|
+ echo "Using saved OSSN DB config file."
|
|
|
|
|
+else
|
|
|
|
|
+ echo "Creating OSSN DB config from template."
|
|
|
|
|
+ mv /etc/apache2/ossn.config.db /config/ossn.config.db
|
|
|
|
|
+fi
|
|
|
|
|
+
|
|
|
|
|
+# Check for OSSN Site config and add
|
|
|
|
|
+if [ -f /config/ossn.config.site ]; then
|
|
|
|
|
+ echo "Using saved OSSN Site config file."
|
|
|
|
|
+else
|
|
|
|
|
+ echo "Creating OSSN Site config from template."
|
|
|
|
|
+ mv /etc/apache2/ossn.config.site /config/ossn.config.site
|
|
|
|
|
+fi
|