From 89fc7a48adc3e88b8ed657cd731b903acdf55449 Mon Sep 17 00:00:00 2001 From: polytan02 Date: Sun, 28 Jun 2015 12:54:58 +0100 Subject: [PATCH] Update in sudo commands --- scripts/install | 4 ++-- scripts/upgrade | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index 816cfb1..1a2be53 100644 --- a/scripts/install +++ b/scripts/install @@ -37,8 +37,8 @@ final_path=/var/www/$app sudo rm -rf $final_path sudo mkdir -p $final_path # Use of latest community edition -sudo wget http://repository.rainloop.net/v2/webmail/rainloop-community-latest.zip -O ../sources/rainloop.zip -sudo unzip ../sources/rainloop.zip -d $final_path/ +sudo wget http://repository.rainloop.net/v2/webmail/rainloop-community-latest.zip -O $final_path/rainloop.zip +sudo unzip $final_path/rainloop.zip -d $final_path/ # Set permissions to rainloop directory # sudo mkdir -p $final_path/logs diff --git a/scripts/upgrade b/scripts/upgrade index 0ca229c..b536550 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -18,9 +18,8 @@ sudo yunohost app initdb $db_user -p $db_pwd final_path=/var/www/$app/rainloop/v/ sudo rm -rf $final_path/* # Use of latest community edition -sudo wget http://repository.rainloop.net/v2/webmail/rainloop-community-latest.zip -O ../sources/rainloop.zip -sudo unzip ../sources/rainloop.zip -d $final_path/ - +sudo wget http://repository.rainloop.net/v2/webmail/rainloop-community-latest.zip -O $final_path/rainloop.zip +sudo unzip $final_path/rainloop.zip -d $final_path/ # Set permissions to rainloop directory sudo chown -R www-data:www-data /var/www/$app