|
@@ -22,7 +22,7 @@ else
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
# Check for OSSN folder
|
|
# Check for OSSN folder
|
|
|
-if [ -f /web/html/ossn ]; then
|
|
|
|
|
|
|
+if [ -f /var/www/html/ossn ]; then
|
|
|
echo "Using OSSN folder found."
|
|
echo "Using OSSN folder found."
|
|
|
else
|
|
else
|
|
|
echo "Populating OSSN folder."
|
|
echo "Populating OSSN folder."
|
|
@@ -38,53 +38,53 @@ else
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
# Check for OSSN DB config and add
|
|
# Check for OSSN DB config and add
|
|
|
-if [ -f /web/html/ossn/configurations/ossn.config.db.php ]; then
|
|
|
|
|
|
|
+if [ -f /var/www/html/ossn/configurations/ossn.config.db.php ]; 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."
|
|
|
- echo "<?php" > /web/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
- echo "/**" >> /web/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
- echo " * Open Source Social Network" >> /web/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
- echo " *" >> /web/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
- echo " * @package (softlab24.com).ossn" >> /web/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
- echo " * @author OSSN Core Team <info@softlab24.com>" >> /web/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
- echo " * @copyright (C) SOFTLAB24 LIMITED" >> /web/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
- echo " * @license Open Source Social Network License (OSSN LICENSE) http://www.opensource-socialnetwork.org/licence" >> /web/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
- echo " * @link https://www.opensource-socialnetwork.org/" >> /web/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
- echo " */" >> /web/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
- echo "" >> /web/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
- echo "// replace <<host>> with your database host name;" >> /web/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
- echo "/$Ossn->host = '$DBHost';" >> /web/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
- echo "" >> /web/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
- echo "// replace <<port>> with your database host name;" >> /web/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
- echo "/$Ossn->port = '$DBPort';" >> /web/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
- echo "" >> /web/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
- echo "// replace <<user>> with your database username;" >> /web/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
- echo "/$Ossn->user = '$DBUser';" >> /web/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
- echo "" >> /web/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
- echo "// replace <<password>> with your database password;" >> /web/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
- echo "/$Ossn->password = '$DBPassword';" >> /web/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
- echo "" >> /web/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
- echo "// replace <<dbname>> with your database name;" >> /web/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
- echo "/$Ossn->database = '$DBName';" >> /web/html/ossn/configurations/ossn.config.db.php
|
|
|
|
|
|
|
+ echo "<?php" > /var/www/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
+ echo "/**" >> /var/www/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
+ echo " * Open Source Social Network" >> /var/www/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
+ echo " *" >> /var/www/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
+ echo " * @package (softlab24.com).ossn" >> /var/www/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
+ echo " * @author OSSN Core Team <info@softlab24.com>" >> /var/www/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
+ echo " * @copyright (C) SOFTLAB24 LIMITED" >> /var/www/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
+ echo " * @license Open Source Social Network License (OSSN LICENSE) http://www.opensource-socialnetwork.org/licence" >> /var/www/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
+ echo " * @link https://www.opensource-socialnetwork.org/" >> /var/www/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
+ echo " */" >> /var/www/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
+ echo "" >> /var/www/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
+ echo "// replace <<host>> with your database host name;" >> /var/www/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
+ echo "/$Ossn->host = '$DBHost';" >> /var/www/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
+ echo "" >> /var/www/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
+ echo "// replace <<port>> with your database host name;" >> /var/www/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
+ echo "/$Ossn->port = '$DBPort';" >> /var/www/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
+ echo "" >> /var/www/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
+ echo "// replace <<user>> with your database username;" >> /var/www/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
+ echo "/$Ossn->user = '$DBUser';" >> /var/www/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
+ echo "" >> /var/www/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
+ echo "// replace <<password>> with your database password;" >> /var/www/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
+ echo "/$Ossn->password = '$DBPassword';" >> /var/www/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
+ echo "" >> /var/www/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
+ echo "// replace <<dbname>> with your database name;" >> /var/www/html/ossn/configurations/ossn.config.db.php && \
|
|
|
|
|
+ echo "/$Ossn->database = '$DBName';" >> /var/www/html/ossn/configurations/ossn.config.db.php
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
# Check for OSSN Site config and add
|
|
# Check for OSSN Site config and add
|
|
|
-if [ -f /web/html/ossn/configurations/ossn.config.site ]; then
|
|
|
|
|
|
|
+if [ -f /var/www/html/ossn/configurations/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."
|
|
|
- echo "<?php" > /web/html/ossn/configurations/ossn.config.site.php && \
|
|
|
|
|
- echo "/**" >> /web/html/ossn/configurations/ossn.config.site.php && \
|
|
|
|
|
- echo " * Open Source Social Network" >> /web/html/ossn/configurations/ossn.config.site.php && \
|
|
|
|
|
- echo " *" >> /web/html/ossn/configurations/ossn.config.site.php && \
|
|
|
|
|
- echo " * @package (softlab24.com).ossn" >> /web/html/ossn/configurations/ossn.config.site.php && \
|
|
|
|
|
- echo " * @author OSSN Core Team <info@softlab24.com>" >> /web/html/ossn/configurations/ossn.config.site.php && \
|
|
|
|
|
- echo " * @copyright (C) SOFTLAB24 LIMITED" >> /web/html/ossn/configurations/ossn.config.site.php && \
|
|
|
|
|
- echo " * @license Open Source Social Network License (OSSN LICENSE) http://www.opensource-socialnetwork.org/licence" >> /web/html/ossn/configurations/ossn.config.site.php && \
|
|
|
|
|
- echo " * @link https://www.opensource-socialnetwork.org/" >> /web/html/ossn/configurations/ossn.config.site.php && \
|
|
|
|
|
- echo " */" >> /web/html/ossn/configurations/ossn.config.site.php && \
|
|
|
|
|
- echo "" >> /web/html/ossn/configurations/ossn.config.site.php && \
|
|
|
|
|
- echo "/$Ossn->url = '$servername';" >> /web/html/ossn/configurations/ossn.config.site.php && \
|
|
|
|
|
- echo "/$Ossn->userdata = '$DataDirectory';" >> /web/html/ossn/configurations/ossn.config.site.php
|
|
|
|
|
|
|
+ echo "<?php" > /var/www/html/ossn/configurations/ossn.config.site.php && \
|
|
|
|
|
+ echo "/**" >> /var/www/html/ossn/configurations/ossn.config.site.php && \
|
|
|
|
|
+ echo " * Open Source Social Network" >> /var/www/html/ossn/configurations/ossn.config.site.php && \
|
|
|
|
|
+ echo " *" >> /var/www/html/ossn/configurations/ossn.config.site.php && \
|
|
|
|
|
+ echo " * @package (softlab24.com).ossn" >> /var/www/html/ossn/configurations/ossn.config.site.php && \
|
|
|
|
|
+ echo " * @author OSSN Core Team <info@softlab24.com>" >> /var/www/html/ossn/configurations/ossn.config.site.php && \
|
|
|
|
|
+ echo " * @copyright (C) SOFTLAB24 LIMITED" >> /var/www/html/ossn/configurations/ossn.config.site.php && \
|
|
|
|
|
+ echo " * @license Open Source Social Network License (OSSN LICENSE) http://www.opensource-socialnetwork.org/licence" >> /var/www/html/ossn/configurations/ossn.config.site.php && \
|
|
|
|
|
+ echo " * @link https://www.opensource-socialnetwork.org/" >> /var/www/html/ossn/configurations/ossn.config.site.php && \
|
|
|
|
|
+ echo " */" >> /var/www/html/ossn/configurations/ossn.config.site.php && \
|
|
|
|
|
+ echo "" >> /var/www/html/ossn/configurations/ossn.config.site.php && \
|
|
|
|
|
+ echo "/$Ossn->url = '$servername';" >> /var/www/html/ossn/configurations/ossn.config.site.php && \
|
|
|
|
|
+ echo "/$Ossn->userdata = '$DataDirectory';" >> /var/www/html/ossn/configurations/ossn.config.site.php
|
|
|
fi
|
|
fi
|