mirror of
https://github.com/YunoHost-Apps/galette_ynh.git
synced 2024-09-03 18:36:28 +02:00
Adding password for admin in manifest
This commit is contained in:
parent
5702103b9f
commit
b9e74d48f6
2 changed files with 14 additions and 8 deletions
|
@ -32,9 +32,17 @@
|
||||||
{
|
{
|
||||||
"name": "admin",
|
"name": "admin",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Choose an admin user"
|
"en": "Admin login"
|
||||||
},
|
},
|
||||||
"example": "johndoe"
|
"example": "galette_admin",
|
||||||
|
"default": "galette_admin"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "adminPass",
|
||||||
|
"ask": {
|
||||||
|
"en": "Admin password"
|
||||||
|
},
|
||||||
|
"example": ""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "is_public",
|
"name": "is_public",
|
||||||
|
|
|
@ -10,7 +10,8 @@ version=0.8.2
|
||||||
domain=$1
|
domain=$1
|
||||||
path=$2
|
path=$2
|
||||||
admin=$3
|
admin=$3
|
||||||
is_public=$4
|
adminPass=$4
|
||||||
|
is_public=$5
|
||||||
|
|
||||||
####################################################
|
####################################################
|
||||||
# Check domain / path availability #
|
# Check domain / path availability #
|
||||||
|
@ -105,15 +106,12 @@ sudo yunohost app ssowatconf
|
||||||
####################################################
|
####################################################
|
||||||
|
|
||||||
# Install mechanize to have a browser in a python script
|
# Install mechanize to have a browser in a python script
|
||||||
|
|
||||||
sudo pip install mechanize
|
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
|
||||||
|
sudo python initialConf.py $domain$path $db_pwd $admin $adminPass
|
||||||
# todo : replace last password by user-specified pass
|
|
||||||
sudo python initialConf.py $domain$path $db_pwd $admin $db_pwd
|
|
||||||
|
|
||||||
# Delete the install folder as advised by galette php installer
|
# Delete the install folder as advised by galette php installer
|
||||||
#sudo rm -rf $final_path/install
|
sudo rm -rf $final_path/install
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue