veizour 6 лет назад
Родитель
Сommit
368b35964e
1 измененных файлов с 11 добавлено и 0 удалено
  1. 11 0
      firstrun.sh

+ 11 - 0
firstrun.sh

@@ -21,11 +21,20 @@ else
 #  cron
 #  cron
 fi
 fi
 
 
+# Check for OSSN folder
+if [ -f /web/html/ossn ]; then
+  echo "Using OSSN folder found."
+else
+  echo "Populating OSSN folder."
+  RUN cp -R /tmp/ossn/. /web/html/ossn/.
+fi
+
 # Check for OSSN DB config and add
 # Check for OSSN DB config and add
 if [ -f /config/ossn.config.db ]; then
 if [ -f /config/ossn.config.db ]; then
   echo "Using saved OSSN DB config file."
   echo "Using saved OSSN DB config file."
 else
 else
   echo "Creating OSSN DB config from template."
   echo "Creating OSSN DB config from template."
+  ln -s /config/ossn.config.db /web/html/ossn/configurations/ossn.config.db
   mv /etc/apache2/ossn.config.db /config/ossn.config.db
   mv /etc/apache2/ossn.config.db /config/ossn.config.db
 fi
 fi
 
 
@@ -34,5 +43,7 @@ if [ -f /config/ossn.config.site ]; then
   echo "Using saved OSSN Site config file."
   echo "Using saved OSSN Site config file."
 else
 else
   echo "Creating OSSN Site config from template."
   echo "Creating OSSN Site config from template."
+  ln -s /config/ossn.config.site /web/html/ossn/configurations/ossn.config.site
   mv /etc/apache2/ossn.config.site /config/ossn.config.site
   mv /etc/apache2/ossn.config.site /config/ossn.config.site
+  RUN service apache2 restart
 fi
 fi