Skip to content
Snippets Groups Projects
Commit 170be593 authored by Bob Mottram's avatar Bob Mottram
Browse files

Tidying

parent f926bc17
No related branches found
No related tags found
No related merge requests found
......@@ -49,9 +49,6 @@ TURTL_ADMIN_PASSWORD=
TURTL_STORAGE_LIMIT_MB=100
TURTL_BASE_DIR=/etc/turtl
LIBUV_VERSION='1.9.1'
LIBUV_HASH='e83953782c916d7822ef0b94e8115ce5756fab5300cca173f0de5f5b0e0ae928'
turtl_variables=(ONION_ONLY
DEFAULT_DOMAIN_NAME
TURTL_DOMAIN_NAME
......@@ -103,7 +100,7 @@ function configure_interactive_turtl {
STORAGE=$(<$data)
if [ ${#STORAGE} -gt 0 ]; then
TURTL_STORAGE_LIMIT_MB=$STORAGE
sed -i "s|defparameter *default-storage-limit*.*|defparameter *default-storage-limit* $TURTL_STORAGE_LIMIT_MB|g" /var/www/$TURTL_DOMAIN_NAME/htdocs/api/config/config.lisp
sed -i "s|defparameter *default-storage-limit*.*|defparameter *default-storage-limit* ${TURTL_STORAGE_LIMIT_MB})|g" $TURTL_BASE_DIR/api/config/config.lisp
systemctl restart turtl
dialog --title $"Change storage limit" \
--msgbox $"Storage limit changed to ${TURTL_STORAGE_LIMIT_MB}M" 6 50
......@@ -128,7 +125,8 @@ function upgrade_turtl {
nginx_dissite $TURTL_DOMAIN_NAME
cd /var/www/$TURTL_DOMAIN_NAME/htdocs
npm install
make minify
make clean
make
chown -R turtl:turtl $TURTL_BASE_DIR
chown -R turtl:turtl /var/www/$TURTL_DOMAIN_NAME/htdocs
nginx_ensite $TURTL_DOMAIN_NAME
......@@ -697,7 +695,7 @@ function install_turtl_app {
cd /var/www/$TURTL_DOMAIN_NAME/htdocs
npm install
make minify
make
chown -R turtl:turtl /var/www/$TURTL_DOMAIN_NAME/htdocs
function_check create_site_certificate
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment