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

remove deprecated ynh_mkdir_tmp

This commit is contained in:
Clément 2017-03-05 23:02:33 +01:00
parent 73be54bcb5
commit 7e18bbd59f
2 changed files with 4 additions and 2 deletions

View file

@ -44,7 +44,8 @@ ynh_mysql_create_db "$db_name" "$db_user" "$db_pwd"
ynh_app_setting_set "$app" mysqlpwd "$db_pwd" ynh_app_setting_set "$app" mysqlpwd "$db_pwd"
# Copy files to the right place # Copy files to the right place
TMPDIR=$(ynh_mkdir_tmp) TMPDIR=$(mktemp -d)
sudo chmod 655 "$TMPDIR"
extract_freshrss "$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 $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

View file

@ -23,7 +23,8 @@ if [ -f $FINAL_PATH/data/user.php.dist ]; then
fi fi
# Create tmp directory and install app inside # Create tmp directory and install app inside
TMPDIR=$(ynh_mkdir_tmp) TMPDIR=$(mktemp -d)
sudo chmod 655 "$TMPDIR"
extract_freshrss "$TMPDIR" extract_freshrss "$TMPDIR"
# Restore config # Restore config