From d49bbcbe2833dc4a2221bb6013f8d7e5ab640580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Sun, 5 Mar 2017 23:08:45 +0100 Subject: [PATCH] use sudo to create tmp dir --- scripts/install | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"