Skip to content

Commit 2a28807

Browse files
authored
fix curl commands (#3568)
1 parent af5809c commit 2a28807

File tree

9 files changed

+23
-23
lines changed

9 files changed

+23
-23
lines changed

ct/heimdall-dashboard.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function update_script() {
2727
msg_error "No ${APP} Installation Found!"
2828
exit
2929
fi
30-
RELEASE=$(curl -fsSLX GET "https://api.github.com/repos/linuxserver/Heimdall/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]')
30+
RELEASE=$(curl -fsSL "https://api.github.com/repos/linuxserver/Heimdall/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]')
3131
if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then
3232
msg_info "Stopping ${APP}"
3333
systemctl stop heimdall
@@ -40,23 +40,23 @@ function update_script() {
4040
msg_ok "Backed up Data"
4141
msg_info "Updating Heimdall Dashboard to ${RELEASE}"
4242
curl -fsSL "https://github.com/linuxserver/Heimdall/archive/${RELEASE}.tar.gz" -o $(basename "https://github.com/linuxserver/Heimdall/archive/${RELEASE}.tar.gz")
43-
tar xzf ${RELEASE}.tar.gz
43+
tar xzf "${RELEASE}".tar.gz
4444
VER=$(curl -fsSL https://api.github.com/repos/linuxserver/Heimdall/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
45-
cp -R Heimdall-${VER}/* /opt/Heimdall
46-
cd /opt/Heimdall
45+
cp -R Heimdall-"${VER}"/* /opt/Heimdall
46+
cd /opt/Heimdall || exit
4747
$STD apt-get install -y composer
4848
export COMPOSER_ALLOW_SUPERUSER=1
4949
$STD composer dump-autoload
5050
echo "${RELEASE}" >/opt/${APP}_version.txt
5151
msg_ok "Updated Heimdall Dashboard to ${RELEASE}"
5252
msg_info "Restoring Data"
53-
cd ~
53+
cd ~ || exit
5454
cp -R database-backup/* /opt/Heimdall/database
5555
cp -R public-backup/* /opt/Heimdall/public
5656
sleep 1
5757
msg_ok "Restored Data"
5858
msg_info "Cleanup"
59-
rm -rf {${RELEASE}.tar.gz,Heimdall-${VER},public-backup,database-backup,Heimdall}
59+
rm -rf {"${RELEASE}".tar.gz,Heimdall-"${VER}",public-backup,database-backup,Heimdall}
6060
sleep 1
6161
msg_ok "Cleaned"
6262
msg_info "Starting ${APP}"

ct/pterodactyl-wings.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function update_script() {
3535

3636
msg_info "Updating ${APP} to v${RELEASE}"
3737
rm /usr/local/bin/wings
38-
curl -fsSL "https://github.com/pterodactyl/wings/releases/download/v${RELEASE}/wings_linux_amd64" -o "/usr/local/bin/wings"
38+
curl -fsSL "https://github.com/pterodactyl/wings/releases/download/v${RELEASE}/wings_linux_amd64" -o "/usr/local/bin/wings"
3939
chmod u+x /usr/local/bin/wings
4040
echo "${RELEASE}" >/opt/${APP}_version.txt
4141
msg_ok "Updated $APP to v${RELEASE}"
@@ -55,4 +55,4 @@ build_container
5555
description
5656

5757
msg_ok "Completed Successfully!\n"
58-
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
58+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"

ct/zitadel.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ function update_script() {
2727
msg_error "No ${APP} Installation Found!"
2828
exit
2929
fi
30-
RELEASE=$(curl -fsSLi https://github.com/zitadel/zitadel/releases/latest | grep location: | cut -d '/' -f 8 | tr -d '\r')
30+
RELEASE=$(curl -fsSL https://github.com/zitadel/zitadel/releases/latest | grep location: | cut -d '/' -f 8 | tr -d '\r')
3131
if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt | grep -oP '\d+\.\d+\.\d+')" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then
3232
msg_info "Stopping $APP"
3333
systemctl stop zitadel
3434
msg_ok "Stopped $APP"
3535

3636
msg_info "Updating $APP to ${RELEASE}"
37-
cd /tmp
38-
curl -fsSL https://github.com/zitadel/zitadel/releases/download/$RELEASE/zitadel-linux-amd64.tar.gz | tar -xz
37+
cd /tmp || exit
38+
curl -fsSL https://github.com/zitadel/zitadel/releases/download/"$RELEASE"/zitadel-linux-amd64.tar.gz | tar -xz
3939
mv zitadel-linux-amd64/zitadel /usr/local/bin
4040
$STD zitadel setup --masterkeyFile /opt/zitadel/.masterkey --config /opt/zitadel/config.yaml --init-projections=true
4141
echo "${RELEASE}" >/opt/${APP}_version.txt

install/daemonsync-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $STD apt-get install -y g++-multilib
1818
msg_ok "Installed Dependencies"
1919

2020
msg_info "Installing Daemon Sync Server"
21-
curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/raw/main/misc/daemonsync_2.2.0.0059_amd64.deb -O
21+
curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/raw/main/misc/daemonsync_2.2.0.0059_amd64.deb -O "daemonsync_2.2.0.0059_amd64.deb"
2222
$STD dpkg -i daemonsync_2.2.0.0059_amd64.deb
2323
msg_ok "Installed Daemon Sync Server"
2424

install/flaresolverr-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ msg_ok "Installed Chrome"
2929

3030
msg_info "Installing FlareSolverr"
3131
RELEASE=$(curl -fsSL https://github.com/FlareSolverr/FlareSolverr/releases/latest | grep "title>Release" | cut -d " " -f 4)
32-
$STD curl -fsSL "https://github.com/FlareSolverr/FlareSolverr/releases/download/$RELEASE/flaresolverr_linux_x64.tar.gz" -O
32+
$STD curl -fsSL "https://github.com/FlareSolverr/FlareSolverr/releases/download/$RELEASE/flaresolverr_linux_x64.tar.gz" -O "flaresolverr_linux_x64.tar.gz"
3333
$STD tar -xzf flaresolverr_linux_x64.tar.gz -C /opt
3434
$STD rm flaresolverr_linux_x64.tar.gz
3535
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt

install/heimdall-dashboard-install.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ $STD apt-get install -y composer
1919
$STD apt-get install -y php8.2-{bz2,curl,sqlite3,zip,xml}
2020
msg_ok "Installed Dependencies"
2121

22-
RELEASE=$(curl -fsSLX GET "https://api.github.com/repos/linuxserver/Heimdall/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]')
23-
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
22+
RELEASE=$(curl -fsSL "https://api.github.com/repos/linuxserver/Heimdall/releases/latest" | awk '/tag_name/{print $4;exit}' FS='[""]')
23+
echo "${RELEASE}" >/opt/"${APPLICATION}"_version.txt
2424
msg_info "Installing Heimdall Dashboard ${RELEASE}"
2525
curl -fsSL "https://github.com/linuxserver/Heimdall/archive/${RELEASE}.tar.gz" -o $(basename "https://github.com/linuxserver/Heimdall/archive/${RELEASE}.tar.gz")
26-
tar xzf ${RELEASE}.tar.gz
26+
tar xzf "${RELEASE}".tar.gz
2727
VER=$(curl -fsSL https://api.github.com/repos/linuxserver/Heimdall/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
28-
rm -rf ${RELEASE}.tar.gz
29-
mv Heimdall-${VER} /opt/Heimdall
30-
cd /opt/Heimdall
28+
rm -rf "${RELEASE}".tar.gz
29+
mv Heimdall-"${VER}" /opt/Heimdall
30+
cd /opt/Heimdall || exit
3131
cp .env.example .env
3232
$STD php artisan key:generate
3333
msg_ok "Installed Heimdall Dashboard ${RELEASE}"
@@ -50,7 +50,7 @@ TimeoutStopSec=30
5050
[Install]
5151
WantedBy=multi-user.target" >$service_path
5252
systemctl enable -q --now heimdall.service
53-
cd /opt/Heimdall
53+
cd /opt/Heimdall || exit
5454
COMPOSER_ALLOW_SUPERUSER=1 composer dump-autoload &>/dev/null
5555
systemctl restart heimdall.service
5656
msg_ok "Created Service"

install/kubo-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ msg_ok "Installed Dependencies"
2020

2121
msg_info "Installing IPFS"
2222
RELEASE=$(curl -fsSL https://github.com/ipfs/kubo/releases/latest | grep "title>Release" | cut -d " " -f 4)
23-
$STD curl -fsSL "https://github.com/ipfs/kubo/releases/download/${RELEASE}/kubo_${RELEASE}_linux-amd64.tar.gz" -O
23+
$STD curl -fsSL "https://github.com/ipfs/kubo/releases/download/${RELEASE}/kubo_${RELEASE}_linux-amd64.tar.gz" -o "kubo_${RELEASE}_linux-amd64.tar.gz"
2424
tar -xzf "kubo_${RELEASE}_linux-amd64.tar.gz" -C /usr/local
2525
$STD ln -s /usr/local/kubo/ipfs /usr/local/bin/ipfs
2626
$STD ipfs init

install/seafile-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ useradd seafile
8989
mkdir -p /home/seafile
9090
chown seafile: /home/seafile
9191
chown seafile: /opt/seafile
92-
$STD su - seafile -c "curl -fsSL https://s3.eu-central-1.amazonaws.com/download.seadrive.org/seafile-server_11.0.13_x86-64.tar.gz -O"
92+
$STD su - seafile -c "curl -fsSL https://s3.eu-central-1.amazonaws.com/download.seadrive.org/seafile-server_11.0.13_x86-64.tar.gz -o seafile-server_11.0.13_x86-64.tar.gz"
9393
$STD su - seafile -c "tar -xzf seafile-server_11.0.13_x86-64.tar.gz -C /opt/seafile/"
9494
$STD su - seafile -c "expect <<EOF
9595
spawn bash /opt/seafile/seafile-server-11.0.13/setup-seafile-mysql.sh

install/zitadel-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ $STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME OWNER $DB_ADMIN_USER;"
3939
msg_ok "Installed PostgreSQL"
4040

4141
msg_info "Installing Zitadel"
42-
RELEASE=$(curl -fsSLi https://github.com/zitadel/zitadel/releases/latest | grep location: | cut -d '/' -f 8 | tr -d '\r')
42+
RELEASE=$(curl -fsSL https://github.com/zitadel/zitadel/releases/latest | grep location: | cut -d '/' -f 8 | tr -d '\r')
4343
curl -fsSL https://github.com/zitadel/zitadel/releases/download/$RELEASE/zitadel-linux-amd64.tar.gz | tar -xz
4444
mv zitadel-linux-amd64/zitadel /usr/local/bin
4545
msg_ok "Installed Zitadel"

0 commit comments

Comments
 (0)