From 6240b37feac3b4a60ef017746e4404df80293f23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Sun, 12 Feb 2017 11:34:30 +0100 Subject: [PATCH] don't move to tmp dir --- scripts/install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 8a8b2b8..68b27b9 100755 --- a/scripts/install +++ b/scripts/install @@ -46,8 +46,8 @@ ynh_app_setting_set "freshrss" mysqlpwd "$db_pwd" # Copy files to the right place TMPDIR=$(ynh_mkdir_tmp) extract_freshrss "$TMPDIR" -cd $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 # sudo cp -a ../conf/config.php $TMPDIR/data # sudo cp ../sources/install_ynh.sql $TMPDIR/app/SQL/install_ynh.sql @@ -86,7 +86,7 @@ freshrss_users=$(ldapsearch -h localhost -b ou=users,dc=yunohost,dc=org -x objec for myuser in $freshrss_users do user_token=$(ynh_string_random) - ./cli/create-user.php --user $myuser --language en --token $user_token --no-default-feeds + $TMPDIR/cli/create-user.php --user $myuser --language en --token $user_token --no-default-feeds #copy sql # sudo cp ../sources/install_ynh.sql /tmp/$myuser-install.sql #change username in sql