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