mirror of
https://github.com/YunoHost-Apps/phpbb_ynh.git
synced 2024-09-03 19:56:36 +02:00
Modification on cURL autoconfig
This commit is contained in:
parent
be3794d29a
commit
b631e16fab
1 changed files with 59 additions and 17 deletions
|
@ -44,24 +44,66 @@ sudo apt-get update -qq > /dev/null 2>&1
|
||||||
sudo apt-get install -y imagemagick > /dev/null 2>&1
|
sudo apt-get install -y imagemagick > /dev/null 2>&1
|
||||||
|
|
||||||
# Configuration of phpBB
|
# Configuration of phpBB
|
||||||
# --data-urlencode "server_protocol=https://" \
|
|
||||||
curl -k -X POST \
|
curl -k -X POST \
|
||||||
-H "Host: $domain" \
|
-H "Host: $domain" \
|
||||||
--data-urlencode "dbms=mysqli" \
|
--data-urlencode "submit=ok" \
|
||||||
--data-urlencode "dbhost=localhost" \
|
"https://127.0.0.1/forum/install/index.php?mode=install&sub=requirements" > /dev/null 2>&1
|
||||||
--data-urlencode "dbname=$db_user" \
|
|
||||||
--data-urlencode "dbuser=$db_user" \
|
curl -k -X POST \
|
||||||
--data-urlencode "dbpasswd=$db_pwd" \
|
-H "Host: $domain" \
|
||||||
--data-urlencode "default_lang=$lang" \
|
--data-urlencode "dbms=mysqli" \
|
||||||
--data-urlencode "admin_name=$admin_login" \
|
--data-urlencode "dbhost=localhost" \
|
||||||
--data-urlencode "admin_pass1=$admin_pwd" \
|
--data-urlencode "dbname=$app" \
|
||||||
--data-urlencode "admin_pass2=$admin_pwd" \
|
--data-urlencode "dbuser=$app" \
|
||||||
--data-urlencode "board_email=$admin_email" \
|
--data-urlencode "dbpasswd=$db_pwd" \
|
||||||
--data-urlencode "server_name=$domain" \
|
--data-urlencode "submit=ok" \
|
||||||
--data-urlencode "server_port=443" \
|
"https://127.0.0.1/forum/install/index.php?mode=install&sub=database" > /dev/null 2>&1
|
||||||
--data-urlencode "script_path=$path" \
|
|
||||||
--data-urlencode "submit=next" \
|
curl -k -X POST \
|
||||||
"https://127.0.0.1$path/install/index.php?mode=install&sub=final" > /dev/null 2>&1
|
-H "Host: $domain" \
|
||||||
|
--data-urlencode "submit=ok" \
|
||||||
|
"https://127.0.0.1/forum/install/index.php?mode=install&sub=database" > /dev/null 2>&1
|
||||||
|
|
||||||
|
curl -k -X POST \
|
||||||
|
-H "Host: $domain" \
|
||||||
|
--data-urlencode "default_lang=$lang" \
|
||||||
|
--data-urlencode "admin_name=$admin_login" \
|
||||||
|
--data-urlencode "admin_pass1=$admin_pwd" \
|
||||||
|
--data-urlencode "admin_pass2=$admin_pwd" \
|
||||||
|
--data-urlencode "board_email=$admin_email" \
|
||||||
|
--data-urlencode "submit=ok" \
|
||||||
|
"https://127.0.0.1/forum/install/index.php?mode=install&sub=administrator" > /dev/null 2>&1
|
||||||
|
|
||||||
|
curl -k -X POST \
|
||||||
|
-H "Host: $domain" \
|
||||||
|
--data-urlencode "submit=ok" \
|
||||||
|
"https://127.0.0.1/forum/install/index.php?mode=install&sub=administrator" > /dev/null 2>&1
|
||||||
|
|
||||||
|
curl -k -X POST \
|
||||||
|
-H "Host: $domain" \
|
||||||
|
--data-urlencode "submit=ok" \
|
||||||
|
"https://127.0.0.1/forum/install/index.php?mode=install&sub=config_file" > /dev/null 2>&1
|
||||||
|
|
||||||
|
curl -k -X POST \
|
||||||
|
-H "Host: $domain" \
|
||||||
|
--data-urlencode "email_enable=1" \
|
||||||
|
--data-urlencode "smtp_delivery=0" \
|
||||||
|
--data-urlencode "smtp_auth=PLAIN" \
|
||||||
|
--data-urlencode "cookie_secure=1" \
|
||||||
|
--data-urlencode "force_server_vars=0" \
|
||||||
|
--data-urlencode "server_protocol=https://" \
|
||||||
|
--data-urlencode "server_name=$domain" \
|
||||||
|
--data-urlencode "server_port=443" \
|
||||||
|
--data-urlencode "script_path=$path" \
|
||||||
|
--data-urlencode "submit=ok" \
|
||||||
|
"https://127.0.0.1/forum/install/index.php?mode=install&sub=advanced" > /dev/null 2>&1
|
||||||
|
|
||||||
|
curl -k -X POST \
|
||||||
|
-H "Host: $domain" \
|
||||||
|
--data-urlencode "submit=ok" \
|
||||||
|
"https://127.0.0.1/forum/install/index.php?mode=install&sub=create_table" > /dev/null 2>&1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# We need to rename the install folder
|
# We need to rename the install folder
|
||||||
#sudo mv $final_path/install $final_path/install_old
|
#sudo mv $final_path/install $final_path/install_old
|
||||||
|
|
Loading…
Reference in a new issue