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:
parent
c9ec729cdf
commit
345270c85d
1 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue