Commit 3d6751f8 authored by Vitaly Lipatov's avatar Vitaly Lipatov

commit packed 3.52.5

parent 2054d45b
...@@ -33,7 +33,7 @@ SHAREDIR=$PROGDIR ...@@ -33,7 +33,7 @@ SHAREDIR=$PROGDIR
# will replaced with /etc/eepm during install # will replaced with /etc/eepm during install
CONFIGDIR=$PROGDIR/../etc CONFIGDIR=$PROGDIR/../etc
EPMVERSION="3.52.4" EPMVERSION="3.52.5"
# package, single (file), pipe, git # package, single (file), pipe, git
EPMMODE="package" EPMMODE="package"
...@@ -2965,6 +2965,8 @@ __epm_korinf_install_eepm() { ...@@ -2965,6 +2965,8 @@ __epm_korinf_install_eepm() {
# enable interactive for install eepm from console # enable interactive for install eepm from console
if inputisatty && [ "$EPMMODE" != "pipe" ] ; then if inputisatty && [ "$EPMMODE" != "pipe" ] ; then
[ -n "$non_interactive" ] || interactive="--interactive" [ -n "$non_interactive" ] || interactive="--interactive"
else
[ -n "$interactive" ] || non_interactive="--auto"
fi fi
# as now, can't install one package from task (and old apt-repo can't install one package) # as now, can't install one package from task (and old apt-repo can't install one package)
...@@ -11908,6 +11910,7 @@ pkgvendor() ...@@ -11908,6 +11910,7 @@ pkgvendor()
[ "$DISTRIB_ID" = "LinuxXP" ] && echo "lxp" && return [ "$DISTRIB_ID" = "LinuxXP" ] && echo "lxp" && return
[ "$DISTRIB_ID" = "TinyCoreLinux" ] && echo "tcl" && return [ "$DISTRIB_ID" = "TinyCoreLinux" ] && echo "tcl" && return
[ "$DISTRIB_ID" = "VoidLinux" ] && echo "void" && return [ "$DISTRIB_ID" = "VoidLinux" ] && echo "void" && return
[ "$DISTRIB_ID" = "ManjaroLinux" ] && echo "manjaro" && return
[ "$DISTRIB_ID" = "OpenSUSE" ] && echo "suse" && return [ "$DISTRIB_ID" = "OpenSUSE" ] && echo "suse" && return
[ "$DISTRIB_ID" = "openSUSETumbleweed" ] && echo "suse" && return [ "$DISTRIB_ID" = "openSUSETumbleweed" ] && echo "suse" && return
[ "$DISTRIB_ID" = "openSUSELeap" ] && echo "suse" && return [ "$DISTRIB_ID" = "openSUSELeap" ] && echo "suse" && return
...@@ -11964,7 +11967,7 @@ case $DISTRIB_ID in ...@@ -11964,7 +11967,7 @@ case $DISTRIB_ID in
Gentoo) Gentoo)
CMD="emerge" CMD="emerge"
;; ;;
ArchLinux) ArchLinux|ManjaroLinux)
CMD="pacman" CMD="pacman"
;; ;;
Fedora|CentOS|OracleLinux|RockyLinux|AlmaLinux|RHEL|RELS|Scientific|GosLinux|Amzn|RedOS) Fedora|CentOS|OracleLinux|RockyLinux|AlmaLinux|RHEL|RELS|Scientific|GosLinux|Amzn|RedOS)
...@@ -13150,6 +13153,9 @@ WGETNOSSLCHECK='' ...@@ -13150,6 +13153,9 @@ WGETNOSSLCHECK=''
CURLNOSSLCHECK='' CURLNOSSLCHECK=''
WGETUSERAGENT='' WGETUSERAGENT=''
CURLUSERAGENT='' CURLUSERAGENT=''
WGETHEADER=''
CURLHEADER=''
AXELHEADER=''
WGETCOMPRESSED='' WGETCOMPRESSED=''
CURLCOMPRESSED='' CURLCOMPRESSED=''
WGETQ='' #-q WGETQ='' #-q
...@@ -13192,6 +13198,7 @@ Options: ...@@ -13192,6 +13198,7 @@ Options:
-q|--quiet - quiet mode -q|--quiet - quiet mode
--verbose - verbose mode --verbose - verbose mode
-k|--no-check-certificate - skip SSL certificate chain support -k|--no-check-certificate - skip SSL certificate chain support
-H|--header - use <header> (X-Cache:1 for example)
-U|-A|--user-agent - send browser like UserAgent -U|-A|--user-agent - send browser like UserAgent
--compressed - request a compressed response and automatically decompress the content --compressed - request a compressed response and automatically decompress the content
-4|--ipv4|--inet4-only - use only IPV4 -4|--ipv4|--inet4-only - use only IPV4
...@@ -13252,6 +13259,12 @@ while [ -n "$1" ] ; do ...@@ -13252,6 +13259,12 @@ while [ -n "$1" ] ; do
WGETNOSSLCHECK='--no-check-certificate' WGETNOSSLCHECK='--no-check-certificate'
CURLNOSSLCHECK='-k' CURLNOSSLCHECK='-k'
;; ;;
-H|--header)
shift
WGETHEADER="--header=$1"
CURLHEADER="--header $1"
AXELHEADER="--header=$1"
;;
-U|-A|--user-agent) -U|-A|--user-agent)
user_agent="Mozilla/5.0 (X11; Linux $arch) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" user_agent="Mozilla/5.0 (X11; Linux $arch) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"
WGETUSERAGENT="-U '$user_agent'" WGETUSERAGENT="-U '$user_agent'"
...@@ -13723,9 +13736,9 @@ elif [ "$EGET_BACKEND" = "wget" ] ; then ...@@ -13723,9 +13736,9 @@ elif [ "$EGET_BACKEND" = "wget" ] ; then
__wget() __wget()
{ {
if [ -n "$WGETUSERAGENT" ] ; then if [ -n "$WGETUSERAGENT" ] ; then
docmd $WGET $FORCEIPV $WGETQ $WGETCOMPRESSED $WGETNOSSLCHECK "$WGETUSERAGENT" "$@" docmd $WGET $FORCEIPV $WGETQ $WGETCOMPRESSED $WGETHEADER $WGETNOSSLCHECK "$WGETUSERAGENT" "$@"
else else
docmd $WGET $FORCEIPV $WGETQ $WGETCOMPRESSED $WGETNOSSLCHECK "$@" docmd $WGET $FORCEIPV $WGETQ $WGETCOMPRESSED $WGETHEADER $WGETNOSSLCHECK "$@"
fi fi
} }
...@@ -13772,9 +13785,9 @@ elif [ "$EGET_BACKEND" = "curl" ] ; then ...@@ -13772,9 +13785,9 @@ elif [ "$EGET_BACKEND" = "curl" ] ; then
__curl() __curl()
{ {
if [ -n "$CURLUSERAGENT" ] ; then if [ -n "$CURLUSERAGENT" ] ; then
docmd $CURL $FORCEIPV --fail -L $CURLQ $CURLCOMPRESSED "$CURLUSERAGENT" $CURLNOSSLCHECK "$@" docmd $CURL $FORCEIPV --fail -L $CURLQ $CURLCOMPRESSED $CURLHEADER "$CURLUSERAGENT" $CURLNOSSLCHECK "$@"
else else
docmd $CURL $FORCEIPV --fail -L $CURLQ $CURLCOMPRESSED $CURLNOSSLCHECK "$@" docmd $CURL $FORCEIPV --fail -L $CURLQ $CURLCOMPRESSED $CURLHEADER $CURLNOSSLCHECK "$@"
fi fi
} }
# put remote content to stdout # put remote content to stdout
...@@ -15192,14 +15205,14 @@ tokenize () { ...@@ -15192,14 +15205,14 @@ tokenize () {
local ESCAPE local ESCAPE
local CHAR local CHAR
if echo "test string" | egrep -ao --color=never "test" >/dev/null 2>&1 if echo "test string" | grep -E -ao --color=never "test" >/dev/null 2>&1
then then
GREP='egrep -ao --color=never' GREP='grep -E -ao --color=never'
else else
GREP='egrep -ao' GREP='grep -E -ao'
fi fi
if echo "test string" | egrep -o "test" >/dev/null 2>&1 if echo "test string" | grep -E -o "test" >/dev/null 2>&1
then then
ESCAPE='(\\[^u[:cntrl:]]|\\u[0-9a-fA-F]{4})' ESCAPE='(\\[^u[:cntrl:]]|\\u[0-9a-fA-F]{4})'
CHAR='[^[:cntrl:]"\\]' CHAR='[^[:cntrl:]"\\]'
...@@ -15217,7 +15230,7 @@ tokenize () { ...@@ -15217,7 +15230,7 @@ tokenize () {
# Force zsh to expand $A into multiple words # Force zsh to expand $A into multiple words
local is_wordsplit_disabled=$(unsetopt 2>/dev/null | grep -c '^shwordsplit$') local is_wordsplit_disabled=$(unsetopt 2>/dev/null | grep -c '^shwordsplit$')
if [ $is_wordsplit_disabled != 0 ]; then setopt shwordsplit; fi if [ $is_wordsplit_disabled != 0 ]; then setopt shwordsplit; fi
$GREP "$STRING|$NUMBER|$KEYWORD|$SPACE|." | egrep -v "^$SPACE$" $GREP "$STRING|$NUMBER|$KEYWORD|$SPACE|." | grep -E -v "^$SPACE$"
if [ $is_wordsplit_disabled != 0 ]; then unsetopt shwordsplit; fi if [ $is_wordsplit_disabled != 0 ]; then unsetopt shwordsplit; fi
} }
......
...@@ -1595,6 +1595,7 @@ pkgvendor() ...@@ -1595,6 +1595,7 @@ pkgvendor()
[ "$DISTRIB_ID" = "LinuxXP" ] && echo "lxp" && return [ "$DISTRIB_ID" = "LinuxXP" ] && echo "lxp" && return
[ "$DISTRIB_ID" = "TinyCoreLinux" ] && echo "tcl" && return [ "$DISTRIB_ID" = "TinyCoreLinux" ] && echo "tcl" && return
[ "$DISTRIB_ID" = "VoidLinux" ] && echo "void" && return [ "$DISTRIB_ID" = "VoidLinux" ] && echo "void" && return
[ "$DISTRIB_ID" = "ManjaroLinux" ] && echo "manjaro" && return
[ "$DISTRIB_ID" = "OpenSUSE" ] && echo "suse" && return [ "$DISTRIB_ID" = "OpenSUSE" ] && echo "suse" && return
[ "$DISTRIB_ID" = "openSUSETumbleweed" ] && echo "suse" && return [ "$DISTRIB_ID" = "openSUSETumbleweed" ] && echo "suse" && return
[ "$DISTRIB_ID" = "openSUSELeap" ] && echo "suse" && return [ "$DISTRIB_ID" = "openSUSELeap" ] && echo "suse" && return
...@@ -1651,7 +1652,7 @@ case $DISTRIB_ID in ...@@ -1651,7 +1652,7 @@ case $DISTRIB_ID in
Gentoo) Gentoo)
CMD="emerge" CMD="emerge"
;; ;;
ArchLinux) ArchLinux|ManjaroLinux)
CMD="pacman" CMD="pacman"
;; ;;
Fedora|CentOS|OracleLinux|RockyLinux|AlmaLinux|RHEL|RELS|Scientific|GosLinux|Amzn|RedOS) Fedora|CentOS|OracleLinux|RockyLinux|AlmaLinux|RHEL|RELS|Scientific|GosLinux|Amzn|RedOS)
...@@ -2613,7 +2614,7 @@ print_version() ...@@ -2613,7 +2614,7 @@ print_version()
local on_text="(host system)" local on_text="(host system)"
local virt="$($DISTRVENDOR -i)" local virt="$($DISTRVENDOR -i)"
[ "$virt" = "(unknown)" ] || [ "$virt" = "(host system)" ] || on_text="(under $virt)" [ "$virt" = "(unknown)" ] || [ "$virt" = "(host system)" ] || on_text="(under $virt)"
echo "Service manager version 3.52.4 https://wiki.etersoft.ru/Epm" echo "Service manager version 3.52.5 https://wiki.etersoft.ru/Epm"
echo "Running on $($DISTRVENDOR -e) $on_text with $SERVICETYPE" echo "Running on $($DISTRVENDOR -e) $on_text with $SERVICETYPE"
echo "Copyright (c) Etersoft 2012-2021" echo "Copyright (c) Etersoft 2012-2021"
echo "This program may be freely redistributed under the terms of the GNU AGPLv3." echo "This program may be freely redistributed under the terms of the GNU AGPLv3."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment