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:
parent
846aaf87e3
commit
a1cd5fac61
3 changed files with 3 additions and 3 deletions
|
@ -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" \
|
||||
|
|
|
@ -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" \
|
||||
|
|
|
@ -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" \
|
||||
|
|
Loading…
Add table
Reference in a new issue