1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cops_ynh.git synced 2024-09-03 18:25:57 +02:00

Missing sudo

This commit is contained in:
polytan02 2017-02-24 17:20:38 +00:00
parent 846aaf87e3
commit a1cd5fac61
3 changed files with 3 additions and 3 deletions

View file

@ -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 ^${runninguser}: /etc/passwd)"
test="$(sudo 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" \

View file

@ -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 ^${runninguser}: /etc/passwd)"
test="$(sudo 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" \

View file

@ -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 ^${runninguser}: /etc/passwd)"
test="$(sudo 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" \