introduce NO_SYSTEMCTL flag

This commit is contained in:
Cyryl Płotnicki-Chudyk 2016-08-01 07:37:34 +02:00
parent 4e7faebe2b
commit 6016fc5ecc
6 changed files with 9 additions and 9 deletions

View file

@ -14,7 +14,7 @@ done
set -e set -e
eval $install_packages eval $install_packages
if [[ -z $DONT_START_TOR ]]; then if [[ -z $NO_SYSTEMCTL ]]; then
sudo systemctl enable tor sudo systemctl enable tor
sudo systemctl start tor sudo systemctl start tor
fi fi

View file

@ -4,7 +4,7 @@ set -e
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
export DONT_CHANGE_SHELL=true export DONT_CHANGE_SHELL=true
export DONT_START_TOR=true export NO_SYSTEMCTL=true
echo "APT::Acquire::Retries=16;" >> /etc/apt/apt.conf.d/99_retries echo "APT::Acquire::Retries=16;" >> /etc/apt/apt.conf.d/99_retries

View file

@ -19,11 +19,11 @@ set +e
sudo diff /etc/dnf/automatic.conf.bak /etc/dnf/automatic.conf sudo diff /etc/dnf/automatic.conf.bak /etc/dnf/automatic.conf
set -e set -e
if [[ -z $NO_SYSTEMCTL ]]; then
sudo systemctl enable dnf-automatic.timer sudo systemctl enable dnf-automatic.timer
sudo systemctl start dnf-automatic.timer sudo systemctl start dnf-automatic.timer
sudo systemctl list-timers "*dnf-*" sudo systemctl list-timers "*dnf-*"
if [[ -z $DONT_START_TOR ]]; then
sudo systemctl enable tor sudo systemctl enable tor
sudo systemctl start tor sudo systemctl start tor
fi fi

View file

@ -3,7 +3,7 @@
set -e set -e
export DONT_CHANGE_SHELL=true export DONT_CHANGE_SHELL=true
export DONT_START_TOR=true export NO_SYSTEMCTL=true
dnf -y install sudo dnf -y install sudo

View file

@ -15,7 +15,7 @@ done
set -e set -e
eval $install_packages eval $install_packages
if [[ -z $DONT_START_TOR ]]; then if [[ -z $NO_SYSTEMCTL ]]; then
sudo systemctl enable tor sudo systemctl enable tor
sudo systemctl start tor sudo systemctl start tor
fi fi

View file

@ -4,7 +4,7 @@ set -e
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
export DONT_CHANGE_SHELL=true export DONT_CHANGE_SHELL=true
export DONT_START_TOR=true export NO_SYSTEMCTL=true
echo "APT::Acquire::Retries=16;" >> /etc/apt/apt.conf.d/99_retries echo "APT::Acquire::Retries=16;" >> /etc/apt/apt.conf.d/99_retries