Fixes on deployment
This commit is contained in:
parent
f2272fe1f9
commit
eaaa8c5df2
|
@ -17,8 +17,8 @@ function main () {
|
||||||
exit 3
|
exit 3
|
||||||
fi
|
fi
|
||||||
noinput='--noinput'
|
noinput='--noinput'
|
||||||
run=surun_
|
alias run=surun_
|
||||||
sudorun=run_
|
alias sudorun=run_
|
||||||
user=$2
|
user=$2
|
||||||
elif [[ $# -eq 2 ]]; then
|
elif [[ $# -eq 2 ]]; then
|
||||||
if [[ $1 != '--noinput' ]]; then
|
if [[ $1 != '--noinput' ]]; then
|
||||||
|
@ -32,8 +32,8 @@ function main () {
|
||||||
echo -e "\nErr. This script should run as a regular user\n" >&2
|
echo -e "\nErr. This script should run as a regular user\n" >&2
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
run=run_
|
alias run=run_
|
||||||
sudorun="run_ sudo"
|
alias sudorun="run_ sudo"
|
||||||
# Test sudo privileges
|
# Test sudo privileges
|
||||||
sudo true
|
sudo true
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue