From 71781fc3f2ca6ad76d62f27f5eb96b5230b48c4d Mon Sep 17 00:00:00 2001 From: polytan02 Date: Sun, 9 Aug 2015 22:58:38 +0100 Subject: [PATCH] Removal of downloaded zip source after installation --- scripts/install | 1 + scripts/upgrade | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index 1a2be53..3c67972 100644 --- a/scripts/install +++ b/scripts/install @@ -39,6 +39,7 @@ sudo mkdir -p $final_path # Use of latest community edition 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/ +sudo rm $final_path/rainloop.zip # Set permissions to rainloop directory # sudo mkdir -p $final_path/logs diff --git a/scripts/upgrade b/scripts/upgrade index b536550..848cb3b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -20,6 +20,7 @@ sudo rm -rf $final_path/* # Use of latest community edition 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/ +sudo rm $final_path/rainloop.zip # Set permissions to rainloop directory sudo chown -R www-data:www-data /var/www/$app