1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/diaspora_ynh.git synced 2024-09-03 18:26:13 +02:00

remove user admin settings

This commit is contained in:
Développeur égaré 2015-05-31 13:21:26 +02:00
parent c9ec729cdf
commit 345270c85d

View file

@ -2,18 +2,18 @@
# Retrieve arguments
domain=$1
user=$2
is_public=$3
#user=$2
is_public=$2
versionname=$(lsb_release -a | grep Codename | awk -F' ' '{print $2}')
# Check user parameter
sudo yunohost user list --json | grep -q "\"username\": \"$user\""
if [[ ! $? -eq 0 ]]; then
echo "Wrong user"
exit 1
fi
sudo yunohost app setting diaspora admin_user -v $user
#sudo yunohost user list --json | grep -q "\"username\": \"$user\""
#if [[ ! $? -eq 0 ]]; then
# echo "Wrong user"
# exit 1
#fi
#sudo yunohost app setting diaspora admin_user -v $user
# Check domain/path availability
sudo yunohost app checkurl $domain -a diaspora