Compare commits

...

11 Commits

Author SHA1 Message Date
lunardunno
a5d7a9514a Rollback some changes to dev 2023-12-14 21:09:34 +04:00
lunardunno
1bae323a1a Back to some changes install_docker.sh 2023-12-14 21:00:12 +04:00
lunardunno
a36eafa56c variable replacement
replacing the $check_pkgs variable
2023-12-01 03:05:53 +04:00
lunardunno
4fd3760a35 Merge pull request #447 from amnezia-vpn/test_support_archlinux
Test support archlinux
2023-12-01 02:13:00 +04:00
lunardunno
51c46bae12 Merge branch 'ArchLinux-support' into test_support_archlinux 2023-12-01 01:57:04 +04:00
lunardunno
112df79f94 rollback to old dev 2023-12-01 01:28:41 +04:00
lunardunno
2904bb96b9 small edit 2023-12-01 00:34:33 +04:00
lunardunno
669f5c21dd small edit 2023-12-01 00:27:13 +04:00
lunardunno
4fbacab643 updating script variables
adding variables to update the list of packages in repositories and to install packages
2023-11-25 21:57:06 +04:00
lunardunno
abb4678b0a feature/test_support_pacman2
adding pacman check to see if the server is busy
2023-10-30 17:14:46 +04:00
lunardunno
e609b22cf8 feature/test_support_pacman1
pacman was added as a test, assuming that all other components were pre-installed on the server.
2023-10-30 16:41:36 +04:00
2 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
if which apt-get > /dev/null 2>&1; then LOCK_FILE="/var/lib/dpkg/lock-frontend";\
elif which dnf > /dev/null 2>&1; then LOCK_FILE="/var/run/dnf.pid";\
elif which yum > /dev/null 2>&1; then LOCK_FILE="/var/run/yum.pid";\
elif which pacman > /dev/null 2>&1; then LOCK_FILE="/var/lib/pacman/db.lck";\
else echo "Packet manager not found"; echo "Internal error"; exit 1; fi;\
if command -v fuser > /dev/null 2>&1; then sudo fuser $LOCK_FILE 2>/dev/null; else echo "fuser not installed"; fi
if command -v fuser > /dev/null 2>&1; then sudo fuser $LOCK_FILE 2>/dev/null; else echo "fuser not installed"; fi

View File

@@ -1,6 +1,7 @@
if which apt-get > /dev/null 2>&1; then pm=$(which apt-get); silent_inst="-yq install"; check_pkgs="-yq update"; docker_pkg="docker.io"; dist="debian";\
elif which dnf > /dev/null 2>&1; then pm=$(which dnf); silent_inst="-yq install"; check_pkgs="-yq check-update"; docker_pkg="docker"; dist="fedora";\
elif which yum > /dev/null 2>&1; then pm=$(which yum); silent_inst="-y -q install"; check_pkgs="-y -q check-update"; docker_pkg="docker"; dist="centos";\
elif which pacman > /dev/null 2>&1; then pm=$(which pacman); silent_inst="--noconfirm -S"; check_pkgs="> /dev/null 2>&1"; docker_pkg="docker"; dist="archlinux";\
else echo "Packet manager not found"; exit 1; fi;\
echo "Dist: $dist, Packet manager: $pm, Install command: $silent_inst, Check pkgs command: $check_pkgs, Docker pkg: $docker_pkg";\
if [ "$dist" = "debian" ]; then export DEBIAN_FRONTEND=noninteractive; fi;\