mirror of
https://github.com/YunoHost-Apps/paheko_ynh.git
synced 2024-09-03 19:56:22 +02:00
try add post-install
This commit is contained in:
parent
b42a885588
commit
f0e43603b2
2 changed files with 40 additions and 3 deletions
|
@ -34,6 +34,33 @@ ram.runtime = "50M"
|
||||||
type = "group"
|
type = "group"
|
||||||
default = "visitors"
|
default = "visitors"
|
||||||
|
|
||||||
|
[install.country]
|
||||||
|
ask.fr = "Nom de l'association"
|
||||||
|
type = "string"
|
||||||
|
choices.France = "France"
|
||||||
|
choices.Belgique = "Belgique"
|
||||||
|
choices.Suisse = "Suisse"
|
||||||
|
|
||||||
|
[install.name]
|
||||||
|
ask.fr = "Nom de l'association"
|
||||||
|
type = "string"
|
||||||
|
|
||||||
|
[install.user_name]
|
||||||
|
ask.fr = "Nom et Prénom"
|
||||||
|
type = "string"
|
||||||
|
|
||||||
|
[install.user_email]
|
||||||
|
ask.fr = "Adresse E-Mail"
|
||||||
|
type = "string"
|
||||||
|
|
||||||
|
[install.password]
|
||||||
|
ask.fr="Mot de passe"
|
||||||
|
type = "password"
|
||||||
|
|
||||||
|
[install.password_confirmed]
|
||||||
|
ask.fr="Encore le mot de passe (vérification)"
|
||||||
|
type = "password"
|
||||||
|
|
||||||
[resources]
|
[resources]
|
||||||
[resources.sources.main]
|
[resources.sources.main]
|
||||||
url = "https://fossil.kd2.org/paheko/uv/paheko-1.3.11.tar.gz"
|
url = "https://fossil.kd2.org/paheko/uv/paheko-1.3.11.tar.gz"
|
||||||
|
|
|
@ -75,9 +75,19 @@ chown $app:$app "$install_dir/config.local.php"
|
||||||
### so we're going to use curl to automatically fill the fields and submit the
|
### so we're going to use curl to automatically fill the fields and submit the
|
||||||
### forms.
|
### forms.
|
||||||
|
|
||||||
# Installation with curl
|
# Post-Installation with curl
|
||||||
#ynh_script_progression --message="Finalizing installation..." --weight=1
|
ynh_script_progression --message="Finalizing installation..." --weight=1
|
||||||
#ynh_local_curl "/INSTALL_PATH" "key1=value1" "key2=value2" "key3=value3"
|
|
||||||
|
installUrl="/var/www/paheko/www/admin/install.php?submit"
|
||||||
|
|
||||||
|
country=$country
|
||||||
|
name=$name
|
||||||
|
user_name=$user_name
|
||||||
|
user_email=$user_email
|
||||||
|
password=$password
|
||||||
|
password_confirmed=$password_confirmed
|
||||||
|
|
||||||
|
ynh_local_curl $installUrl "country=$country" "name=$name" "user_name=$user_name" "user_email=$user_email" "password=$password" "password_confirmed=$password_confirmed"
|
||||||
#https://paheko.rodinux.fr/admin/install.php --args="country=FR&name=toto&user_name=bob&user_email=bob@example.org&password=bopbidibopbopbop&password_confirmed=bopbidibopbopbop"
|
#https://paheko.rodinux.fr/admin/install.php --args="country=FR&name=toto&user_name=bob&user_email=bob@example.org&password=bopbidibopbopbop&password_confirmed=bopbidibopbopbop"
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
|
|
Loading…
Add table
Reference in a new issue