diff --git a/src/freedombone-app-turtl b/src/freedombone-app-turtl index 614216ac..768306e1 100755 --- a/src/freedombone-app-turtl +++ b/src/freedombone-app-turtl @@ -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