diff --git a/scripts/install b/scripts/install index fcd0b06..b5c83a3 100755 --- a/scripts/install +++ b/scripts/install @@ -44,7 +44,7 @@ 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=$(mktemp -d) +TMPDIR=$(sudo mktemp -d) sudo chmod 655 "$TMPDIR" extract_freshrss "$TMPDIR" diff --git a/scripts/upgrade b/scripts/upgrade index 1b53c2a..d7769d4 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -23,7 +23,7 @@ if [ -f $FINAL_PATH/data/user.php.dist ]; then fi # Create tmp directory and install app inside -TMPDIR=$(mktemp -d) +TMPDIR=$(sudo mktemp -d) sudo chmod 655 "$TMPDIR" extract_freshrss "$TMPDIR"