sudo fix
This commit is contained in:
@@ -165,7 +165,8 @@ check_running() {
|
|||||||
|
|
||||||
|
|
||||||
install_docker_apt() {
|
install_docker_apt() {
|
||||||
$SUDO_CMD echo exit 101 > /usr/sbin/policy-rc.d
|
#echo exit 101 > /usr/sbin/policy-rc.d
|
||||||
|
echo exit 101 > /tmp/p-rc; $SUDO_CMD mv /tmp/p-rc /usr/sbin/policy-rc.d
|
||||||
$SUDO_CMD chmod +x /usr/sbin/policy-rc.d
|
$SUDO_CMD chmod +x /usr/sbin/policy-rc.d
|
||||||
|
|
||||||
$SUDO_CMD apt-get update
|
$SUDO_CMD apt-get update
|
||||||
@@ -174,7 +175,7 @@ install_docker_apt() {
|
|||||||
$SUDO_CMD curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
$SUDO_CMD curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
||||||
$SUDO_CMD chmod a+r /etc/apt/keyrings/docker.gpg
|
$SUDO_CMD chmod a+r /etc/apt/keyrings/docker.gpg
|
||||||
|
|
||||||
$SUDO_CMD . /etc/os-release; # set VERSION_CODENAME
|
. /etc/os-release; # set variable VERSION_CODENAME
|
||||||
|
|
||||||
DOCKER_SOURCE=$($SUDO_CMD cat /etc/apt/sources.list.d/docker.list | grep 'bullseye stable' | wc -l)
|
DOCKER_SOURCE=$($SUDO_CMD cat /etc/apt/sources.list.d/docker.list | grep 'bullseye stable' | wc -l)
|
||||||
if [ "$DOCKER_SOURCE" == "0" ]; then
|
if [ "$DOCKER_SOURCE" == "0" ]; then
|
||||||
@@ -282,8 +283,8 @@ $SUDO_CMD docker run \
|
|||||||
--env LETSENCRYPT_MAIL=$LETSENCRYPT_MAIL registry.format.hu/proxy-deployment-tool
|
--env LETSENCRYPT_MAIL=$LETSENCRYPT_MAIL registry.format.hu/proxy-deployment-tool
|
||||||
|
|
||||||
# test - alias doesn't work inside a function
|
# test - alias doesn't work inside a function
|
||||||
$SUDO_CMD shopt -s expand_aliases
|
shopt -s expand_aliases
|
||||||
$SUDO_CMD source $HOME/.bash_aliases
|
source $HOME/.bash_aliases
|
||||||
service-debian core-dns start info
|
service-debian core-dns start info
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user