diff --git a/scripts/install b/scripts/install index c23c7f8..fcd0b06 100755 --- a/scripts/install +++ b/scripts/install @@ -44,7 +44,8 @@ ynh_mysql_create_db "$db_name" "$db_user" "$db_pwd" ynh_app_setting_set "$app" mysqlpwd "$db_pwd" # Copy files to the right place -TMPDIR=$(ynh_mkdir_tmp) +TMPDIR=$(mktemp -d) +sudo chmod 655 "$TMPDIR" extract_freshrss "$TMPDIR" $TMPDIR/cli/do-install.php --default_user $admin_user --auth_type http_auth --environment production --base_url $domain/$path --title FreshRSS --api_enabled --db-type mysql --db-host localhost --db-user $db_user --db-password $db_pwd --db-base $db_name diff --git a/scripts/upgrade b/scripts/upgrade index 44d8c54..1b53c2a 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -23,7 +23,8 @@ if [ -f $FINAL_PATH/data/user.php.dist ]; then fi # Create tmp directory and install app inside -TMPDIR=$(ynh_mkdir_tmp) +TMPDIR=$(mktemp -d) +sudo chmod 655 "$TMPDIR" extract_freshrss "$TMPDIR" # Restore config