1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/phpbb_ynh.git synced 2024-09-03 19:56:36 +02:00

Switch from --data-urlencode to --data according owncloud_ynh

This commit is contained in:
polytan02 2015-03-16 15:12:05 +00:00
parent 3c53318552
commit ab9f120cec

View file

@ -87,141 +87,135 @@ then
# Configuration of phpBB
#echo -e "\n Initial checks";
#curl -k -X POST \
#curl -kL -H "Host: $domain" -X POST "https://127.0.0.1/$path/install/index.php?mode=install&sub=" \ -X POST \
#-H "Host: $domain" \
#--data-urlencode "submit=Proceed%20to%20next%20step" \
#--data "submit=Proceed to next step" \
#"https://127.0.0.1$path/install/index.php?mode=install&sub=requirements" > /dev/null 2>&1
#echo -e "\n Requirements";
sudo curl -k -X POST \
-H "Host: $domain" \
--data-urlencode "img_imagick=/usr/bin" \
--data-urlencode "submit=Start%20install" \
"https://$domain$path/install/index.php?mode=install&sub=requirements" > /dev/null 2>&1
sudo curl -kL -H "Host: $domain" -X POST "https://$domain$path/install/index.php?mode=install&sub=requirements" \
--data "img_imagick=/usr/bin" \
--data "submit=Start install" \
> /dev/null 2>&1
#echo -e "\n database";
sudo curl -k -X POST \
-H "Host: $domain" \
--data-urlencode "img_imagick=/usr/bin" \
--data-urlencode "language=en" \
--data-urlencode "testdb=false" \
--data-urlencode "dbms=mysqli" \
--data-urlencode "dbhost=localhost" \
--data-urlencode "dbport=" \
--data-urlencode "dbname=$db_user" \
--data-urlencode "dbuser=$db_user" \
--data-urlencode "table_prefix=phpbb_" \
--data-urlencode "dbpasswd=$db_pwd" \
--data-urlencode "submit=Proceed%20to%20next%20step" \
"https://$domain$path/install/index.php?mode=install&sub=database" > /dev/null 2>&1
sudo curl -kL -H "Host: $domain" -X POST "https://127.0.0.1/$path/install/index.php?mode=install&sub=database" \
--data "img_imagick=/usr/bin" \
--data "language=en" \
--data "testdb=false" \
--data "dbms=mysqli" \
--data "dbhost=localhost" \
--data "dbport=" \
--data "dbname=$db_user" \
--data "dbuser=$db_user" \
--data "table_prefix=phpbb_" \
--data "dbpasswd=$db_pwd" \
--data "submit=Proceed to next step" \
> /dev/null 2>&1
#echo -e "\n admin";
sudo curl -k -X POST \
-H "Host: $domain" \
--data-urlencode "img_imagick=/usr/bin" \
--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 "img_imagick=/usr/bin" \
--data-urlencode "language=en" \
--data-urlencode "dbms=mysqli" \
--data-urlencode "dbhost=localhost" \
--data-urlencode "dbport=" \
--data-urlencode "dbname=$db_user" \
--data-urlencode "dbuser=$db_user" \
--data-urlencode "dbpasswd=$db_pwd" \
--data-urlencode "table_prefix=phpbb_" \
--data-urlencode "submit=Proceed%20to%20next%20step" \
"https://$domain$path/install/index.php?mode=install&sub=administrator" > /dev/null 2>&1
sudo curl -kL -H "Host: $domain" -X POST "https://127.0.0.1/$path/install/index.php?mode=install&sub=administrator" \
--data "img_imagick=/usr/bin" \
--data "default_lang=$lang" \
--data "admin_name=$admin_login" \
--data "admin_pass1=$admin_pwd" \
--data "admin_pass2=$admin_pwd" \
--data "board_email=$admin_email" \
--data "img_imagick=/usr/bin" \
--data "language=en" \
--data "dbms=mysqli" \
--data "dbhost=localhost" \
--data "dbport=" \
--data "dbname=$db_user" \
--data "dbuser=$db_user" \
--data "dbpasswd=$db_pwd" \
--data "table_prefix=phpbb_" \
--data "submit=Proceed to next step" \
> /dev/null 2>&1
#echo -e "\n config_file";
sudo curl -k -X POST \
-H "Host: $domain" \
--data-urlencode "img_imagick=/usr/bin" \
--data-urlencode "language=en" \
--data-urlencode "dbms=mysqli" \
--data-urlencode "dbhost=localhost" \
--data-urlencode "dbport=" \
--data-urlencode "dbname=$db_user" \
--data-urlencode "dbuser=$db_user" \
--data-urlencode "dbpasswd=$db_pwd" \
--data-urlencode "table_prefix=phpbb_" \
--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=Proceed%20to%20next%20step" \
"https://$domain$path/install/index.php?mode=install&sub=config_file" > /dev/null 2>&1
sudo curl -kL -H "Host: $domain" -X POST "https://127.0.0.1/$path/install/index.php?mode=install&sub=config_file" \
--data "img_imagick=/usr/bin" \
--data "language=en" \
--data "dbms=mysqli" \
--data "dbhost=localhost" \
--data "dbport=" \
--data "dbname=$db_user" \
--data "dbuser=$db_user" \
--data "dbpasswd=$db_pwd" \
--data "table_prefix=phpbb_" \
--data "default_lang=$lang" \
--data "admin_name=$admin_login" \
--data "admin_pass1=$admin_pwd" \
--data "admin_pass2=$admin_pwd" \
--data "board_email=$admin_email" \
--data "submit=Proceed to next step" \
> /dev/null 2>&1
#echo -e "\n advanced";
sudo curl -k -X POST \
-H "Host: $domain" \
--data-urlencode "email_enable=1" \
--data-urlencode "smtp_delivery=0" \
--data-urlencode "smtp_host=" \
--data-urlencode "smtp_auth=PLAIN" \
--data-urlencode "smtp_user=" \
--data-urlencode "smtp_pass=" \
--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 "img_imagick=/usr/bin" \
--data-urlencode "language=en" \
--data-urlencode "dbms=mysqli" \
--data-urlencode "dbhost=localhost" \
--data-urlencode "dbport=" \
--data-urlencode "dbname=$db_user" \
--data-urlencode "dbuser=$db_user" \
--data-urlencode "dbpasswd=$db_pwd" \
--data-urlencode "table_prefix=phpbb_" \
--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=Proceed%20to%20next%20step" \
"https://$domain$path/install/index.php?mode=install&sub=advanced" > /dev/null 2>&1
sudo curl -kL -H "Host: $domain" -X POST "https://127.0.0.1/$path/install/index.php?mode=install&sub=advanced" \
--data "email_enable=1" \
--data "smtp_delivery=0" \
--data "smtp_host=" \
--data "smtp_auth=PLAIN" \
--data "smtp_user=" \
--data "smtp_pass=" \
--data "cookie_secure=1" \
--data "force_server_vars=0" \
--data "server_protocol=https://" \
--data "server_name=$domain" \
--data "server_port=443" \
--data "script_path=$path" \
--data "img_imagick=/usr/bin" \
--data "language=en" \
--data "dbms=mysqli" \
--data "dbhost=localhost" \
--data "dbport=" \
--data "dbname=$db_user" \
--data "dbuser=$db_user" \
--data "dbpasswd=$db_pwd" \
--data "table_prefix=phpbb_" \
--data "default_lang=$lang" \
--data "admin_name=$admin_login" \
--data "admin_pass1=$admin_pwd" \
--data "admin_pass2=$admin_pwd" \
--data "board_email=$admin_email" \
--data "submit=Proceed to next step" \
> /dev/null 2>&1
#echo -e "\n create database";
sudo curl -k -X POST \
-H "Host: $domain" \
--data-urlencode "language=en" \
--data-urlencode "dbms=mysqli" \
--data-urlencode "dbhost=localhost" \
--data-urlencode "dbport=" \
--data-urlencode "dbuser=$db_user" \
--data-urlencode "dbpasswd=$db_pwd" \
--data-urlencode "dbname=$db_user" \
--data-urlencode "table_prefix=phpbb_" \
--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 "img_imagick=/usr/bin" \
--data-urlencode "ftp_path=" \
--data-urlencode "ftp_user=" \
--data-urlencode "ftp_pass=" \
--data-urlencode "email_enable=1" \
--data-urlencode "smtp_delivery=0" \
--data-urlencode "smtp_host=" \
--data-urlencode "smtp_auth=PLAIN" \
--data-urlencode "smtp_user=" \
--data-urlencode "smtp_pass=" \
--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=Proceed%20to%20next%20step" \
"https://$domain$path/install/index.php?mode=install&sub=create_table" > /dev/null 2>&1
sudo curl -kL -H "Host: $domain" -X POST "https://127.0.0.1/$path/install/index.php?mode=install&sub=create_table" \
--data "language=en" \
--data "dbms=mysqli" \
--data "dbhost=localhost" \
--data "dbport=" \
--data "dbuser=$db_user" \
--data "dbpasswd=$db_pwd" \
--data "dbname=$db_user" \
--data "table_prefix=phpbb_" \
--data "default_lang=$lang" \
--data "admin_name=$admin_login" \
--data "admin_pass1=$admin_pwd" \
--data "admin_pass2=$admin_pwd" \
--data "board_email=$admin_email" \
--data "img_imagick=/usr/bin" \
--data "ftp_path=" \
--data "ftp_user=" \
--data "ftp_pass=" \
--data "email_enable=1" \
--data "smtp_delivery=0" \
--data "smtp_host=" \
--data "smtp_auth=PLAIN" \
--data "smtp_user=" \
--data "smtp_pass=" \
--data "cookie_secure=1" \
--data "force_server_vars=0" \
--data "server_protocol=https://" \
--data "server_name=$domain" \
--data "server_port=443" \
--data "script_path=$path" \
--data "submit=Proceed to next step" \
> /dev/null 2>&1
# We need to rename the install folder
sudo mv $final_path/install $final_path/install_old