diff --git a/scripts/install b/scripts/install index 54b07db..214faed 100755 --- a/scripts/install +++ b/scripts/install @@ -151,7 +151,7 @@ sudo cp ../conf/robots.txt $final_path runninguser="${app}-ynh" # 1. Create the user # Create a system account for COPS if it doesn't already exists -test="$(grep ^${tuser}: /etc/passwd)" +test="$(grep ^${runninguser}: /etc/passwd)" if [ -n "${test}" ]; then echo "The user $runninguser does not exist, we can create it" sudo useradd -c "$runninguser system account" \ diff --git a/scripts/restore b/scripts/restore index 3baac84..db1e060 100755 --- a/scripts/restore +++ b/scripts/restore @@ -45,7 +45,7 @@ sudo cp -a ./sources/* $final_path/ runninguser="${app}-ynh" # 1. Create the user # Create a system account for COPS if it doesn't already exists -test="$(grep ^${tuser}: /etc/passwd)" +test="$(grep ^${runninguser}: /etc/passwd)" if [ -n "${test}" ]; then echo "The user $runninguser does not exist, we can create it" sudo useradd -c "$runninguser system account" \ diff --git a/scripts/upgrade b/scripts/upgrade index aa2eeec..394a4af 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -83,7 +83,7 @@ sudo cp ../conf/robots.txt $final_path runninguser="${app}-ynh" # 1. Create the user # Create a system account for COPS if it doesn't already exists -test="$(grep ^${tuser}: /etc/passwd)" +test="$(grep ^${runninguser}: /etc/passwd)" if [ -n "${test}" ]; then echo "The user $runninguser does not exist, we can create it" sudo useradd -c "$runninguser system account" \