From 46fb1398c7bad7718988c98572111c5fd25cbc9f Mon Sep 17 00:00:00 2001 From: mbugeia Date: Sun, 16 Oct 2016 16:44:34 +0200 Subject: [PATCH] Fix ssh usage and add infos to readme --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 49159dd..c1f85cd 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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. # 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 - usermod -p '*' "$app" + sudo usermod -p '*' "$app" fi