introduce NO_SYSTEMCTL flag
This commit is contained in:
parent
4e7faebe2b
commit
6016fc5ecc
6 changed files with 9 additions and 9 deletions
|
@ -14,7 +14,7 @@ done
|
|||
set -e
|
||||
eval $install_packages
|
||||
|
||||
if [[ -z $DONT_START_TOR ]]; then
|
||||
if [[ -z $NO_SYSTEMCTL ]]; then
|
||||
sudo systemctl enable tor
|
||||
sudo systemctl start tor
|
||||
fi
|
||||
|
|
|
@ -4,7 +4,7 @@ set -e
|
|||
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
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
|
||||
|
||||
|
|
|
@ -19,11 +19,11 @@ set +e
|
|||
sudo diff /etc/dnf/automatic.conf.bak /etc/dnf/automatic.conf
|
||||
set -e
|
||||
|
||||
sudo systemctl enable dnf-automatic.timer
|
||||
sudo systemctl start dnf-automatic.timer
|
||||
sudo systemctl list-timers "*dnf-*"
|
||||
if [[ -z $NO_SYSTEMCTL ]]; then
|
||||
sudo systemctl enable dnf-automatic.timer
|
||||
sudo systemctl start dnf-automatic.timer
|
||||
sudo systemctl list-timers "*dnf-*"
|
||||
|
||||
if [[ -z $DONT_START_TOR ]]; then
|
||||
sudo systemctl enable tor
|
||||
sudo systemctl start tor
|
||||
fi
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
set -e
|
||||
|
||||
export DONT_CHANGE_SHELL=true
|
||||
export DONT_START_TOR=true
|
||||
export NO_SYSTEMCTL=true
|
||||
|
||||
dnf -y install sudo
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ done
|
|||
set -e
|
||||
eval $install_packages
|
||||
|
||||
if [[ -z $DONT_START_TOR ]]; then
|
||||
if [[ -z $NO_SYSTEMCTL ]]; then
|
||||
sudo systemctl enable tor
|
||||
sudo systemctl start tor
|
||||
fi
|
||||
|
|
|
@ -4,7 +4,7 @@ set -e
|
|||
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue