mirror of
https://github.com/YunoHost-Apps/wordpress_ynh.git
synced 2024-09-03 20:36:10 +02:00
Update install
This commit is contained in:
parent
0616e143e7
commit
002dd6ce65
1 changed files with 2 additions and 3 deletions
|
@ -4,7 +4,6 @@
|
||||||
domain=$1
|
domain=$1
|
||||||
path=$2
|
path=$2
|
||||||
admin_passwd=$3
|
admin_passwd=$3
|
||||||
root_pwd=$(sudo cat /etc/yunohost/mysql)
|
|
||||||
|
|
||||||
# Check domain/path availability
|
# Check domain/path availability
|
||||||
sudo yunohost app checkurl $domain$path -a wordpress
|
sudo yunohost app checkurl $domain$path -a wordpress
|
||||||
|
@ -55,8 +54,8 @@ if [ $4 = "n" ];
|
||||||
then
|
then
|
||||||
sudo yunohost app setting wordpress skipped_uris -d
|
sudo yunohost app setting wordpress skipped_uris -d
|
||||||
sudo yunohost app ssowatconf
|
sudo yunohost app ssowatconf
|
||||||
mysql -u root -p$root_pwd wordpress < ../conf/private.sql
|
mysql -u $db_user -p$db_pwd $db_user < ../conf/private.sql
|
||||||
else
|
else
|
||||||
mysql -u root -p$root_pwd wordpress < ../conf/public.sql
|
mysql -u $db_user -p$db_pwd $db_user < ../conf/public.sql
|
||||||
fi
|
fi
|
||||||
sudo sed -i '/wordpress/d' /etc/hosts
|
sudo sed -i '/wordpress/d' /etc/hosts
|
||||||
|
|
Loading…
Add table
Reference in a new issue