1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/freshrss_ynh.git synced 2024-09-03 18:36:33 +02:00

use sudo to create tmp dir

This commit is contained in:
Clément 2017-03-05 23:08:45 +01:00
parent 7e18bbd59f
commit d49bbcbe28
2 changed files with 2 additions and 2 deletions

View file

@ -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"

View file

@ -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"