mirror of
https://github.com/YunoHost-Apps/galette_ynh.git
synced 2024-09-03 18:36:28 +02:00
Adding sudo to remove install directory
This commit is contained in:
parent
8c89f3deee
commit
a4db675a74
2 changed files with 5 additions and 5 deletions
6
conf/initialConf.py → scripts/initialConf.py
Normal file → Executable file
6
conf/initialConf.py → scripts/initialConf.py
Normal file → Executable file
|
@ -3,9 +3,9 @@ import re
|
||||||
import sys
|
import sys
|
||||||
from mechanize import Browser
|
from mechanize import Browser
|
||||||
|
|
||||||
path = sys.argv[1]
|
path = sys.argv[1]
|
||||||
password = sys.argv[2]
|
password = sys.argv[2]
|
||||||
admin = sys.argv[3]
|
admin = sys.argv[3]
|
||||||
adminPass = sys.argv[4]
|
adminPass = sys.argv[4]
|
||||||
|
|
||||||
br = Browser()
|
br = Browser()
|
|
@ -80,9 +80,9 @@ sudo pip install mechanize
|
||||||
# Then call python script to fill galette php installer with the right info
|
# Then call python script to fill galette php installer with the right info
|
||||||
|
|
||||||
# todo : replace last password by user-specified pass
|
# 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 #
|
# Nginx configuration #
|
||||||
|
|
Loading…
Reference in a new issue