This commit is contained in:
Bob Mottram 2016-12-18 19:24:38 +00:00
parent f926bc170d
commit 170be59379
1 changed files with 4 additions and 6 deletions

View File

@ -49,9 +49,6 @@ TURTL_ADMIN_PASSWORD=
TURTL_STORAGE_LIMIT_MB=100 TURTL_STORAGE_LIMIT_MB=100
TURTL_BASE_DIR=/etc/turtl TURTL_BASE_DIR=/etc/turtl
LIBUV_VERSION='1.9.1'
LIBUV_HASH='e83953782c916d7822ef0b94e8115ce5756fab5300cca173f0de5f5b0e0ae928'
turtl_variables=(ONION_ONLY turtl_variables=(ONION_ONLY
DEFAULT_DOMAIN_NAME DEFAULT_DOMAIN_NAME
TURTL_DOMAIN_NAME TURTL_DOMAIN_NAME
@ -103,7 +100,7 @@ function configure_interactive_turtl {
STORAGE=$(<$data) STORAGE=$(<$data)
if [ ${#STORAGE} -gt 0 ]; then if [ ${#STORAGE} -gt 0 ]; then
TURTL_STORAGE_LIMIT_MB=$STORAGE 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 systemctl restart turtl
dialog --title $"Change storage limit" \ dialog --title $"Change storage limit" \
--msgbox $"Storage limit changed to ${TURTL_STORAGE_LIMIT_MB}M" 6 50 --msgbox $"Storage limit changed to ${TURTL_STORAGE_LIMIT_MB}M" 6 50
@ -128,7 +125,8 @@ function upgrade_turtl {
nginx_dissite $TURTL_DOMAIN_NAME nginx_dissite $TURTL_DOMAIN_NAME
cd /var/www/$TURTL_DOMAIN_NAME/htdocs cd /var/www/$TURTL_DOMAIN_NAME/htdocs
npm install npm install
make minify make clean
make
chown -R turtl:turtl $TURTL_BASE_DIR chown -R turtl:turtl $TURTL_BASE_DIR
chown -R turtl:turtl /var/www/$TURTL_DOMAIN_NAME/htdocs chown -R turtl:turtl /var/www/$TURTL_DOMAIN_NAME/htdocs
nginx_ensite $TURTL_DOMAIN_NAME nginx_ensite $TURTL_DOMAIN_NAME
@ -697,7 +695,7 @@ function install_turtl_app {
cd /var/www/$TURTL_DOMAIN_NAME/htdocs cd /var/www/$TURTL_DOMAIN_NAME/htdocs
npm install npm install
make minify make
chown -R turtl:turtl /var/www/$TURTL_DOMAIN_NAME/htdocs chown -R turtl:turtl /var/www/$TURTL_DOMAIN_NAME/htdocs
function_check create_site_certificate function_check create_site_certificate