Commit 44bcf46d19f7efe4cae75d8d3926cc3427561aec
1 parent
07e037b31a
Exists in
master
Update install
Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff
scripts/install
... | ... | @@ -4,7 +4,6 @@ |
4 | 4 | domain=$1 |
5 | 5 | path=$2 |
6 | 6 | user=$3 |
7 | -password=$4 | |
8 | 7 | |
9 | 8 | # Check user parameter |
10 | 9 | ls /home | grep $user |
... | ... | @@ -78,12 +77,13 @@ sudo yunohost app ssowatconf |
78 | 77 | # Owncloud installation via curl |
79 | 78 | echo "127.0.0.1 $domain #yunoowncloud" | sudo tee -a /etc/hosts |
80 | 79 | sleep 1 |
81 | -curl -kL -X POST https://$domain$path/index.php --data "install=true&adminlogin=$user&adminpass=$password&directory=/home/yunohost.app/owncloud/data&dbtype=mysql&dbuser=$db_user&dbpass=$db_pwd&dbname=$db_user&dbhost=localhost" > /dev/null 2>&1 | |
80 | +curl -kL -X POST https://$domain$path/index.php --data "install=true&adminlogin=admin&adminpass=$db_pwd&directory=/home/yunohost.app/owncloud/data&dbtype=mysql&dbuser=$db_user&dbpass=$db_pwd&dbname=$db_user&dbhost=localhost" > /dev/null 2>&1 | |
82 | 81 | |
83 | 82 | # Enable plugins |
84 | 83 | sleep 5 |
85 | -curl -kL -X POST https://$domain$path/index.php/settings/ajax/enableapp.php --data "appid=files_external" -u "$user:$password" > /dev/null 2>&1 | |
86 | -curl -kL -X POST https://$domain$path/index.php/settings/ajax/enableapp.php --data "appid=user_ldap" -u "$user:$password" > /dev/null 2>&1 | |
84 | +curl -kL -X POST https://$domain$path/index.php/settings/ajax/enableapp.php --data "appid=files_external" -u "admin:$db_pwd" > /dev/null 2>&1 | |
85 | +curl -kL -X POST https://$domain$path/index.php/settings/ajax/enableapp.php --data "appid=user_ldap" -u "admin:$db_pwd" > /dev/null 2>&1 | |
86 | +curl -kL -X POST https://$domain$path/index.php/settings/ajax/togglegroups.php --data "username=$user&group=admin" -u "admin:$db_pwd" > /dev/null 2>&1 | |
87 | 87 | |
88 | 88 | # Check if the Mysql database is initialized & running |
89 | 89 | mysql -u $db_user -p$db_pwd $db_user -e "select * from oc_appconfig;" > /dev/null 2>&1 |