1
0
Fork 0
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:
mbugeia 2016-10-16 16:44:34 +02:00
parent 7133f1a14c
commit 46fb1398c7

View file

@ -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