From a4db675a74d298a27f926f2f0a4720f81cddf5d1 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 24 Oct 2015 13:10:48 +0200 Subject: [PATCH] Adding sudo to remove install directory --- {conf => scripts}/initialConf.py | 6 +++--- scripts/install | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) rename {conf => scripts}/initialConf.py (93%) mode change 100644 => 100755 diff --git a/conf/initialConf.py b/scripts/initialConf.py old mode 100644 new mode 100755 similarity index 93% rename from conf/initialConf.py rename to scripts/initialConf.py index efc804d..6745403 --- a/conf/initialConf.py +++ b/scripts/initialConf.py @@ -3,9 +3,9 @@ import re import sys from mechanize import Browser -path = sys.argv[1] -password = sys.argv[2] -admin = sys.argv[3] +path = sys.argv[1] +password = sys.argv[2] +admin = sys.argv[3] adminPass = sys.argv[4] br = Browser() diff --git a/scripts/install b/scripts/install index f304226..e84eab2 100755 --- a/scripts/install +++ b/scripts/install @@ -80,9 +80,9 @@ sudo pip install mechanize # Then call python script to fill galette php installer with the right info # todo : replace last password by user-specified pass -sudo python ../conf/initialConf.py $domain$path $db_pwd $admin $db_pwd +sudo python initialConf.py $domain$path $db_pwd $admin $db_pwd -rm -rf $final_path/install +sudo rm -rf $final_path/install #################################################### # Nginx configuration #