1
0
Fork 0
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:
Alexis Gavoty 2013-12-05 17:25:09 +01:00
parent 0616e143e7
commit 002dd6ce65

View file

@ -4,7 +4,6 @@
domain=$1
path=$2
admin_passwd=$3
root_pwd=$(sudo cat /etc/yunohost/mysql)
# Check domain/path availability
sudo yunohost app checkurl $domain$path -a wordpress
@ -55,8 +54,8 @@ if [ $4 = "n" ];
then
sudo yunohost app setting wordpress skipped_uris -d
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
mysql -u root -p$root_pwd wordpress < ../conf/public.sql
mysql -u $db_user -p$db_pwd $db_user < ../conf/public.sql
fi
sudo sed -i '/wordpress/d' /etc/hosts