Fixes on deployment

This commit is contained in:
Marc Aymerich 2015-10-02 12:18:49 +00:00
parent f2272fe1f9
commit eaaa8c5df2
1 changed files with 4 additions and 4 deletions

View File

@ -17,8 +17,8 @@ function main () {
exit 3
fi
noinput='--noinput'
run=surun_
sudorun=run_
alias run=surun_
alias sudorun=run_
user=$2
elif [[ $# -eq 2 ]]; then
if [[ $1 != '--noinput' ]]; then
@ -32,8 +32,8 @@ function main () {
echo -e "\nErr. This script should run as a regular user\n" >&2
exit 1
}
run=run_
sudorun="run_ sudo"
alias run=run_
alias sudorun="run_ sudo"
# Test sudo privileges
sudo true
fi