mirror of
https://github.com/YunoHost-Apps/galette_ynh.git
synced 2024-09-03 18:36:28 +02:00
Fix MySQL install
This commit is contained in:
parent
7c73d34456
commit
b77b1f73ba
2 changed files with 27 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
;; Test complet
|
;; Test complet PostgreSQL
|
||||||
; Manifest
|
; Manifest
|
||||||
domain="domain.tld"
|
domain="domain.tld"
|
||||||
path="/path"
|
path="/path"
|
||||||
|
@ -21,6 +21,26 @@
|
||||||
multi_instance=1
|
multi_instance=1
|
||||||
port_already_use=0
|
port_already_use=0
|
||||||
change_url=1
|
change_url=1
|
||||||
|
;; Test complet MySQL
|
||||||
|
; Manifest
|
||||||
|
domain="domain.tld"
|
||||||
|
path="/path"
|
||||||
|
is_public=1
|
||||||
|
admin="john"
|
||||||
|
password="1Strong-Password"
|
||||||
|
database="mysql"
|
||||||
|
; Checks
|
||||||
|
pkg_linter=1
|
||||||
|
setup_sub_dir=1
|
||||||
|
setup_root=1
|
||||||
|
setup_nourl=0
|
||||||
|
setup_private=1
|
||||||
|
setup_public=1
|
||||||
|
upgrade=1
|
||||||
|
backup_restore=1
|
||||||
|
multi_instance=1
|
||||||
|
port_already_use=0
|
||||||
|
change_url=1
|
||||||
;;; Options
|
;;; Options
|
||||||
Email=
|
Email=
|
||||||
Notification=none
|
Notification=none
|
||||||
|
|
|
@ -147,8 +147,12 @@ ynh_permission_update --permission="main" --add="visitors"
|
||||||
# Installation with curl
|
# Installation with curl
|
||||||
ynh_script_progression --message="Finalizing installation..."
|
ynh_script_progression --message="Finalizing installation..."
|
||||||
ynh_local_curl "/installer.php" "install_permsok=1"
|
ynh_local_curl "/installer.php" "install_permsok=1"
|
||||||
ynh_local_curl "/installer.php" "install_type=i"
|
ynh_local_curl "/installer.php" "install_type=i"if [ $database == "pgsql" ]
|
||||||
|
then
|
||||||
ynh_local_curl "/installer.php" "install_dbtype=pgsql" "install_dbhost=localhost" "install_dbport=5432" "install_dbuser=$db_user" "install_dbpass=$db_pwd" "install_dbname=$db_name" "install_dbprefix=galette_"
|
ynh_local_curl "/installer.php" "install_dbtype=pgsql" "install_dbhost=localhost" "install_dbport=5432" "install_dbuser=$db_user" "install_dbpass=$db_pwd" "install_dbname=$db_name" "install_dbprefix=galette_"
|
||||||
|
else
|
||||||
|
ynh_local_curl "/installer.php" "install_dbtype=mysql" "install_dbhost=localhost" "install_dbport=3306" "install_dbuser=$db_user" "install_dbpass=$db_pwd" "install_dbname=$db_name" "install_dbprefix=galette_"
|
||||||
|
fi
|
||||||
ynh_local_curl "/installer.php" "install_dbperms_ok=1"
|
ynh_local_curl "/installer.php" "install_dbperms_ok=1"
|
||||||
ynh_local_curl "/installer.php" "install_dbwrite_ok=1"
|
ynh_local_curl "/installer.php" "install_dbwrite_ok=1"
|
||||||
ynh_local_curl "/installer.php" "install_adminlogin=$admin" "install_adminpass=$password" "install_adminpass_verif=$password"
|
ynh_local_curl "/installer.php" "install_adminlogin=$admin" "install_adminpass=$password" "install_adminpass_verif=$password"
|
||||||
|
|
Loading…
Reference in a new issue