Fix dapostinstall update step under set -e
This commit is contained in:
+10
-2
@@ -63,6 +63,15 @@ build_php_extension() {
|
||||
da build set "$option" yes
|
||||
da build "$target"
|
||||
}
|
||||
|
||||
update_daupdate_tools() {
|
||||
echo "update..."
|
||||
wget "$HTLINK/daupdate.sh" -O /sbin/daupdate
|
||||
chmod +x /sbin/daupdate
|
||||
wget "$HTLINK/daupdate.sh" -O /opt/daupdate
|
||||
wget "$HTLINK/da_cli.sh" -O /sbin/dacli
|
||||
chmod +x /sbin/dacli
|
||||
}
|
||||
exec > >(tee -ia "$LOG_FILE") 2>&1
|
||||
cd "$DAPOSTINSTALL_DIR"
|
||||
# shellcheck source=lib/common.sh
|
||||
@@ -76,8 +85,7 @@ yum -y install epel-release
|
||||
yum -y install htop wget rsync nano mc ncdu borgbackup screen net-tools htop libmemcached libmemcached-devel
|
||||
cp daupdate.sh /opt
|
||||
chmod 700 /opt/daupdate.sh
|
||||
cd /opt/
|
||||
/opt/daupdate.sh update
|
||||
update_daupdate_tools
|
||||
cd "$DAPOSTINSTALL_DIR"
|
||||
clear
|
||||
cd "$DAPOSTINSTALL_DIR"
|
||||
|
||||
Reference in New Issue
Block a user