mirror of
https://github.com/YunoHost-Apps/phpbb_ynh.git
synced 2024-09-03 19:56:36 +02:00
Basic mysql pwd
This commit is contained in:
parent
8be045ed93
commit
fc9f8d6167
2 changed files with 7 additions and 7 deletions
|
@ -18,8 +18,8 @@ if [[ ! $? -eq 0 ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
db_user=$app
|
db_user=$app
|
||||||
db_pwd=$(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d '[A-Za-z0-9]' | sed -n 's/\(.\{24\}\).*/\1/p')
|
#db_pwd=$(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d '[A-Za-z0-9]' | sed -n 's/\(.\{24\}\).*/\1/p')
|
||||||
#db_pwd=$admin_pwd
|
db_pwd=$admin_pwd
|
||||||
|
|
||||||
# Initialize database and store mysql password for upgrade
|
# Initialize database and store mysql password for upgrade
|
||||||
sudo yunohost app initdb $db_user -p $db_pwd
|
sudo yunohost app initdb $db_user -p $db_pwd
|
||||||
|
|
|
@ -77,7 +77,7 @@ echo -e "\n database";
|
||||||
curl -kL -X POST \
|
curl -kL -X POST \
|
||||||
-H "Host: $domain" \
|
-H "Host: $domain" \
|
||||||
--data-urlencode "img_imagick=/usr/bin" \
|
--data-urlencode "img_imagick=/usr/bin" \
|
||||||
--data-urlencode "language=$lang" \
|
--data-urlencode "language=en" \
|
||||||
--data-urlencode "dbms=mysqli" \
|
--data-urlencode "dbms=mysqli" \
|
||||||
--data-urlencode "dbhost=localhost" \
|
--data-urlencode "dbhost=localhost" \
|
||||||
--data-urlencode "dbport=" \
|
--data-urlencode "dbport=" \
|
||||||
|
@ -98,7 +98,7 @@ curl -kL -X POST \
|
||||||
--data-urlencode "admin_pass2=$admin_pwd" \
|
--data-urlencode "admin_pass2=$admin_pwd" \
|
||||||
--data-urlencode "board_email=$admin_email" \
|
--data-urlencode "board_email=$admin_email" \
|
||||||
--data-urlencode "img_imagick=/usr/bin" \
|
--data-urlencode "img_imagick=/usr/bin" \
|
||||||
--data-urlencode "language=$lang" \
|
--data-urlencode "language=en" \
|
||||||
--data-urlencode "dbms=mysqli" \
|
--data-urlencode "dbms=mysqli" \
|
||||||
--data-urlencode "dbhost=localhost" \
|
--data-urlencode "dbhost=localhost" \
|
||||||
--data-urlencode "dbport=" \
|
--data-urlencode "dbport=" \
|
||||||
|
@ -113,7 +113,7 @@ echo -e "\n config_file";
|
||||||
curl -kL -X POST \
|
curl -kL -X POST \
|
||||||
-H "Host: $domain" \
|
-H "Host: $domain" \
|
||||||
--data-urlencode "img_imagick=/usr/bin" \
|
--data-urlencode "img_imagick=/usr/bin" \
|
||||||
--data-urlencode "language=$lang" \
|
--data-urlencode "language=en" \
|
||||||
--data-urlencode "dbms=mysqli" \
|
--data-urlencode "dbms=mysqli" \
|
||||||
--data-urlencode "dbhost=localhost" \
|
--data-urlencode "dbhost=localhost" \
|
||||||
--data-urlencode "dbport=" \
|
--data-urlencode "dbport=" \
|
||||||
|
@ -145,7 +145,7 @@ curl -kL -X POST \
|
||||||
--data-urlencode "server_port=443" \
|
--data-urlencode "server_port=443" \
|
||||||
--data-urlencode "script_path=$path" \
|
--data-urlencode "script_path=$path" \
|
||||||
--data-urlencode "img_imagick=/usr/bin" \
|
--data-urlencode "img_imagick=/usr/bin" \
|
||||||
--data-urlencode "language=$lang" \
|
--data-urlencode "language=en" \
|
||||||
--data-urlencode "dbms=mysqli" \
|
--data-urlencode "dbms=mysqli" \
|
||||||
--data-urlencode "dbhost=localhost" \
|
--data-urlencode "dbhost=localhost" \
|
||||||
--data-urlencode "dbport=" \
|
--data-urlencode "dbport=" \
|
||||||
|
@ -164,7 +164,7 @@ curl -kL -X POST \
|
||||||
echo -e "\n create database";
|
echo -e "\n create database";
|
||||||
curl -kL -X POST \
|
curl -kL -X POST \
|
||||||
-H "Host: $domain" \
|
-H "Host: $domain" \
|
||||||
--data-urlencode "language=$lang" \
|
--data-urlencode "language=en" \
|
||||||
--data-urlencode "dbms=mysqli" \
|
--data-urlencode "dbms=mysqli" \
|
||||||
--data-urlencode "dbhost=localhost" \
|
--data-urlencode "dbhost=localhost" \
|
||||||
--data-urlencode "dbport=" \
|
--data-urlencode "dbport=" \
|
||||||
|
|
Loading…
Reference in a new issue