From c286f212a307fc7c4a3d83ca7d1ab73b11c8a5ec Mon Sep 17 00:00:00 2001 From: abeudin Date: Fri, 20 Feb 2015 09:59:58 +0100 Subject: [PATCH] Update install --- scripts/install | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index c94d3bd..c33b3df 100644 --- a/scripts/install +++ b/scripts/install @@ -42,11 +42,20 @@ sudo chown root /etc/cron.d/ttrss sudo apt-get install php5-cli -y #add folder -sudo mkdir $final_path/cache/{export,images,upload,js} -sudo mkdir $final_path/{feed-icons,lock} - -sudo chmod -R 777 $final_path/cache/images && sudo chmod -R 777 $final_path/cache/upload && sudo chmod -R 777 $final_path/cache/export && sudo chmod -R 777 $final_path/cache/js && sudo chmod -R 777 $final_path/feed-icons && sudo chmod -R 777 $final_path/lock +for i in export images upload js +do + if [ ! -d $final_path/cache/$i ] + sudo mkdir $final_path/cache/$i + if + sudo chmod -R 777 $final_path/cache/$i +done +for i in feed-icons lock + if [ ! -d $final_path/$i ] + sudo mkdir $final_path/$i + fi + sudo chmod -R 777 $final_path/$i +done # Set permissions to ttrss directory sudo chown -R www-data: $final_path