mirror of
https://github.com/YunoHost-Apps/gogs_ynh.git
synced 2024-09-03 20:36:23 +02:00
Fix ssh usage and add infos to readme
This commit is contained in:
parent
7133f1a14c
commit
46fb1398c7
1 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ ynh_mysql_connect_as "$dbuser" "$dbpass" "$dbname" < ../conf/login_source.sql
|
||||||
|
|
||||||
# test if user gogs is locked because of an old installation of the package.
|
# test if user gogs is locked because of an old installation of the package.
|
||||||
# if it's blocked, unlock it to allow ssh usage with git
|
# if it's blocked, unlock it to allow ssh usage with git
|
||||||
if [[ $(grep "$app" /etc/shadow | cut -d: -f2) == '!' ]]
|
if [[ $(sudo grep "$app" /etc/shadow | cut -d: -f2) == '!' ]]
|
||||||
then
|
then
|
||||||
usermod -p '*' "$app"
|
sudo usermod -p '*' "$app"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue