Skip to content

Commit e0f71f8

Browse files
committed
Fixes broken curls
1 parent 92a0826 commit e0f71f8

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

ct/authentik.sh

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

3737
msg_info "Building ${APP} website"
3838
mkdir -p /opt/authentik
39-
curl -fsSL "${RELEASE}" -o "authentik.tar.gz"
39+
curl -fsSL "${RELEASE}" -o "authentik.tar.gz"
4040
tar -xzf authentik.tar.gz -C /opt/authentik --strip-components 1 --overwrite
4141
rm -rf authentik.tar.gz
4242
cd /opt/authentik/website
@@ -84,4 +84,4 @@ description
8484

8585
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
8686
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
87-
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:9000/if/flow/initial-setup/${CL}"
87+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:9000/if/flow/initial-setup/${CL}"

ct/bookstack.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
mv /opt/bookstack /opt/bookstack-backup
38-
curl -fsSL "--directory-prefix=/opt "https://github.com/BookStackApp/BookStack/archive/refs/tags/v${RELEASE}.zip" -o $(basename "--directory-prefix=/opt "https://github.com/BookStackApp/BookStack/archive/refs/tags/v${RELEASE}.zip")
38+
curl -fsSL "https://github.com/BookStackApp/BookStack/archive/refs/tags/v${RELEASE}.zip" -o "/opt/BookStack-${RELEASE}.zip"
3939
unzip -q /opt/v${RELEASE}.zip -d /opt
4040
mv /opt/BookStack-${RELEASE} /opt/bookstack
4141
cp /opt/bookstack-backup/.env /opt/bookstack/.env
@@ -75,4 +75,4 @@ description
7575
msg_ok "Completed Successfully!\n"
7676
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
7777
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
78-
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"
78+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"

install/apache-guacamole-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ $STD ldconfig
6363
RELEASE_CLIENT=$(curl -fsSLL https://api.github.com/repos/apache/guacamole-client/tags | jq -r '.[0].name')
6464
curl -fsSL "https://downloads.apache.org/guacamole/${RELEASE_CLIENT}/binary/guacamole-${RELEASE_CLIENT}.war" -o "/opt/apache-guacamole/tomcat9/webapps/guacamole.war"
6565
cd /root
66-
curl -fsSL "--directory-prefix=/root/ https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.26.tar.gz" -o $(basename "--directory-prefix=/root/ https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.26.tar.gz")
66+
curl -fsSL "https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.26.tar.gz" -o "/root/mysql-connector-java-8.0.26.tar.gz"
6767
$STD tar -xf ~/mysql-connector-java-8.0.26.tar.gz
6868
mv ~/mysql-connector-java-8.0.26/mysql-connector-java-8.0.26.jar /etc/guacamole/lib/
69-
curl -fsSL "--directory-prefix=/root/ https://downloads.apache.org/guacamole/1.5.5/binary/guacamole-auth-jdbc-1.5.5.tar.gz" -o $(basename "--directory-prefix=/root/ https://downloads.apache.org/guacamole/1.5.5/binary/guacamole-auth-jdbc-1.5.5.tar.gz")
69+
curl -fsSL "https://downloads.apache.org/guacamole/1.5.5/binary/guacamole-auth-jdbc-1.5.5.tar.gz" -o "/root/guacamole-auth-jdbc-1.5.5.tar.gz"
7070
$STD tar -xf ~/guacamole-auth-jdbc-1.5.5.tar.gz
7171
mv ~/guacamole-auth-jdbc-1.5.5/mysql/guacamole-auth-jdbc-mysql-1.5.5.jar /etc/guacamole/extensions/
7272
msg_ok "Setup Apache Guacamole"

install/authentik-install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ msg_ok "Installed Dependencies"
3838

3939
msg_info "Installing yq"
4040
cd /tmp
41-
YQ_LATEST="$(curl -fsSL "https://api.github.com/repos/mikefarah/yq/releases/latest" | grep -Po '"tag_name": \K.*?(?=")')"
42-
curl -fsSL "https://github.com/mikefarah/yq/releases/download/${YQ_LATEST}/yq_linux_amd64" -qO /usr/bin/yq" -o $(basename "https://github.com/mikefarah/yq/releases/download/${YQ_LATEST}/yq_linux_amd64" -qO /usr/bin/yq")
41+
YQ_LATEST="$(curl -fsSL https://api.github.com/repos/mikefarah/yq/releases/latest | grep -Po '"tag_name": \K.*?(?=")')"
42+
curl -fsSL "https://github.com/mikefarah/yq/releases/download/${YQ_LATEST}/yq_linux_amd64" -o /usr/bin/yq
4343
chmod +x /usr/bin/yq
4444
msg_ok "Installed yq"
4545

@@ -190,4 +190,4 @@ rm -rf authentik.tar.gz
190190
$STD apt-get -y remove yq
191191
$STD apt-get -y autoremove
192192
$STD apt-get -y autoclean
193-
msg_ok "Cleaned"
193+
msg_ok "Cleaned"

0 commit comments

Comments
 (0)