Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Commit 39ccacb

Browse files
pull upstream changes (#54)
Co-authored-by: bketelsen <37492+bketelsen@users.noreply.github.com>
1 parent 779f2f6 commit 39ccacb

12 files changed

Lines changed: 30 additions & 28 deletions

install/alpine-wireguard-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ if [[ "$INSTALL_WGD" =~ ^[Yy]$ ]]; then
6161
msg_ok "Installed additional dependencies for WGDashboard"
6262
msg_info "Installing WGDashboard"
6363
git clone -q https://github.com/donaldzou/WGDashboard.git /etc/wgdashboard
64-
cd /etc/wgdashboard/src || exit
64+
cd /etc/wgdashboard/src
6565
chmod u+x wgd.sh
6666
$STD ./wgd.sh install
6767
msg_ok "Installed WGDashboard"
@@ -79,7 +79,7 @@ depend() {
7979
8080
start() {
8181
ebegin "Starting WGDashboard"
82-
cd /etc/wgdashboard/src/ || exit 1
82+
cd /etc/wgdashboard/src/
8383
./wgd.sh start &
8484
eend $?
8585
}

install/heimdall-dashboard-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ 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) }')
2828
rm -rf "${RELEASE}".tar.gz
2929
mv Heimdall-"${VER}" /opt/Heimdall
30-
cd /opt/Heimdall || exit
30+
cd /opt/Heimdall
3131
cp .env.example .env
3232
$STD php artisan key:generate
3333
msg_ok "Installed Heimdall Dashboard ${RELEASE}"

install/karakeep-install.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ chmod +x /usr/bin/yt-dlp
3434
msg_ok "Installed Additional Tools"
3535

3636
msg_info "Installing Meilisearch"
37-
cd /tmp || exit
37+
cd /tmp
3838
curl -fsSL "https://github.com/meilisearch/meilisearch/releases/latest/download/meilisearch.deb" -o "meilisearch.deb"
3939
$STD dpkg -i meilisearch.deb
4040
curl -fsSL "https://raw.githubusercontent.com/meilisearch/meilisearch/latest/config.toml" -o "/etc/meilisearch.toml"
@@ -59,21 +59,21 @@ $STD npm install -g corepack@0.31.0
5959
msg_ok "Installed Node.js"
6060

6161
msg_info "Installing karakeep"
62-
cd /opt || exit
62+
cd /opt
6363
RELEASE=$(curl -fsSL https://api.github.com/repos/karakeep-app/karakeep/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
6464
curl -fsSL "https://github.com/karakeep-app/karakeep/archive/refs/tags/v${RELEASE}.zip" -o "v${RELEASE}.zip"
6565
unzip -q "v${RELEASE}.zip"
6666
mv karakeep-"${RELEASE}" /opt/karakeep
67-
cd /opt/karakeep || exit
67+
cd /opt/karakeep
6868
corepack enable
6969
export PUPPETEER_SKIP_DOWNLOAD="true"
7070
export NEXT_TELEMETRY_DISABLED=1
7171
export CI="true"
72-
cd /opt/karakeep/apps/web || exit
72+
cd /opt/karakeep/apps/web
7373
$STD pnpm install --frozen-lockfile
7474
$STD pnpm exec next build --experimental-build-mode compile
7575
cp -r /opt/karakeep/apps/web/.next/standalone/apps/web/server.js /opt/karakeep/apps/web
76-
cd /opt/karakeep/apps/workers || exit
76+
cd /opt/karakeep/apps/workers
7777
$STD pnpm install --frozen-lockfile
7878

7979
export DATA_DIR=/opt/karakeep_data
@@ -103,7 +103,7 @@ msg_ok "Installed karakeep"
103103

104104
msg_info "Running Database Migration"
105105
mkdir -p ${DATA_DIR}
106-
cd /opt/karakeep/packages/db || exit
106+
cd /opt/karakeep/packages/db
107107
$STD pnpm migrate
108108
msg_ok "Database Migration Completed"
109109

install/kimai-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ RELEASE=$(curl -fsSL https://api.github.com/repos/kimai/kimai/releases/latest |
6060
curl -fsSL "https://github.com/kimai/kimai/archive/refs/tags/${RELEASE}.zip" -o $(basename "https://github.com/kimai/kimai/archive/refs/tags/${RELEASE}.zip")
6161
unzip -q "${RELEASE}".zip
6262
mv kimai-"${RELEASE}" /opt/kimai
63-
cd /opt/kimai || exit
63+
cd /opt/kimai
6464
echo "export COMPOSER_ALLOW_SUPERUSER=1" >>~/.bashrc
6565
source ~/.bashrc
6666
$STD composer install --no-dev --optimize-autoloader --no-interaction

install/outline-install.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ update_os
1515

1616
msg_info "Installing Dependencies"
1717
$STD apt-get install -y \
18-
gnupg \
19-
mkcert \
20-
git \
21-
redis
18+
gnupg \
19+
mkcert \
20+
git \
21+
redis
2222
msg_ok "Installed Dependencies"
2323

2424
msg_info "Setting up Node.js Repository"
@@ -43,7 +43,6 @@ $STD apt-get install -y postgresql-16
4343
DB_NAME="outline"
4444
DB_USER="outline"
4545
DB_PASS="$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | cut -c1-13)"
46-
SECRET_KEY="$(openssl rand -hex 32)"
4746
$STD sudo -u postgres psql -c "CREATE ROLE $DB_USER WITH LOGIN PASSWORD '$DB_PASS';"
4847
$STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME WITH OWNER $DB_USER ENCODING 'UTF8' TEMPLATE template0;"
4948
$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET client_encoding TO 'utf8';"
@@ -52,6 +51,7 @@ $STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET timezone TO 'UTC';"
5251
msg_ok "Set up PostgreSQL"
5352

5453
msg_info "Setup Outline (Patience)"
54+
SECRET_KEY="$(openssl rand -hex 32)"
5555
temp_file=$(mktemp)
5656
LOCAL_IP="$(hostname -I | awk '{print $1}')"
5757
RELEASE=$(curl -fsSL https://api.github.com/repos/outline/outline/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
@@ -60,6 +60,7 @@ tar zxf $temp_file
6060
mv outline-${RELEASE} /opt/outline
6161
cd /opt/outline
6262
cp .env.sample .env
63+
export NODE_ENV=development
6364
sed -i 's/NODE_ENV=production/NODE_ENV=development/g' /opt/outline/.env
6465
sed -i "s/generate_a_new_key/${SECRET_KEY}/g" /opt/outline/.env
6566
sed -i "s/user:pass@postgres/${DB_USER}:${DB_PASS}@localhost/g" /opt/outline/.env
@@ -70,6 +71,7 @@ $STD yarn install --frozen-lockfile
7071
export NODE_OPTIONS="--max-old-space-size=3584"
7172
$STD yarn build
7273
sed -i 's/NODE_ENV=development/NODE_ENV=production/g' /opt/outline/.env
74+
export NODE_ENV=production
7375
echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt"
7476
msg_ok "Setup Outline"
7577

@@ -83,7 +85,7 @@ After=network.target
8385
Type=simple
8486
User=root
8587
WorkingDirectory=/opt/outline
86-
ExecStart=/usr/bin/node ./build/server/index.js
88+
ExecStart=/usr/bin/yarn start
8789
Restart=always
8890
EnvironmentFile=/opt/outline/.env
8991

install/paperless-ngx-install.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,18 @@ $STD apt-get install -y \
5858
tesseract-ocr \
5959
tesseract-ocr-eng
6060

61-
cd /tmp || exit
61+
cd /tmp
6262
curl -fsSL "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10040/ghostscript-10.04.0.tar.gz" -o $(basename "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10040/ghostscript-10.04.0.tar.gz")
6363
$STD tar -xzf ghostscript-10.04.0.tar.gz
64-
cd ghostscript-10.04.0 || exit
64+
cd ghostscript-10.04.0
6565
$STD ./configure
6666
$STD make
6767
$STD sudo make install
6868
msg_ok "Installed OCR Dependencies"
6969

7070
msg_info "Installing JBIG2"
7171
$STD git clone https://github.com/ie13/jbig2enc /opt/jbig2enc
72-
cd /opt/jbig2enc || exit
72+
cd /opt/jbig2enc
7373
$STD bash ./autogen.sh
7474
$STD bash ./configure
7575
$STD make
@@ -79,12 +79,12 @@ msg_ok "Installed JBIG2"
7979

8080
msg_info "Installing Paperless-ngx (Patience)"
8181
Paperlessngx=$(curl -fsSL "https://github.com/paperless-ngx/paperless-ngx/releases/latest" | grep "title>Release" | cut -d " " -f 5)
82-
cd /opt || exit
82+
cd /opt
8383
$STD curl -fsSL "https://github.com/paperless-ngx/paperless-ngx/releases/download/$Paperlessngx/paperless-ngx-$Paperlessngx.tar.xz" -o "paperless-ngx-$Paperlessngx.tar.xz"
8484
$STD tar -xf "paperless-ngx-$Paperlessngx.tar.xz" -C /opt/
8585
mv paperless-ngx paperless
8686
rm "paperless-ngx-$Paperlessngx.tar.xz"
87-
cd /opt/paperless || exit
87+
cd /opt/paperless
8888
$STD pip install --upgrade pip
8989
$STD pip install -r requirements.txt
9090
curl -fsSL "https://raw.githubusercontent.com/paperless-ngx/paperless-ngx/main/paperless.conf.example" -o /opt/paperless/paperless.conf
@@ -121,7 +121,7 @@ sed -i -e "s|#PAPERLESS_DBNAME=paperless|PAPERLESS_DBNAME=$DB_NAME|" /opt/paperl
121121
sed -i -e "s|#PAPERLESS_DBUSER=paperless|PAPERLESS_DBUSER=$DB_USER|" /opt/paperless/paperless.conf
122122
sed -i -e "s|#PAPERLESS_DBPASS=paperless|PAPERLESS_DBPASS=$DB_PASS|" /opt/paperless/paperless.conf
123123
sed -i -e "s|#PAPERLESS_SECRET_KEY=change-me|PAPERLESS_SECRET_KEY=$SECRET_KEY|" /opt/paperless/paperless.conf
124-
cd /opt/paperless/src || exit
124+
cd /opt/paperless/src
125125
$STD python3 manage.py migrate
126126
msg_ok "Set up PostgreSQL database"
127127

install/paymenter-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ msg_info "Installing Paymenter"
4747
RELEASE=$(curl -fsSL https://api.github.com/repos/paymenter/paymenter/releases/latest | grep '"tag_name"' | sed -E 's/.*"tag_name": "([^"]+)".*/\1/')
4848
echo "${RELEASE}" >/opt/"${APPLICATION}"_version.txt
4949
mkdir -p /opt/paymenter
50-
cd /opt/paymenter || exit
50+
cd /opt/paymenter
5151
curl -fsSL "https://github.com/paymenter/paymenter/releases/download/${RELEASE}/paymenter.tar.gz" -o paymenter.tar.gz
5252
$STD tar -xzvf paymenter.tar.gz
5353
chmod -R 755 storage/* bootstrap/cache/

install/pelican-panel-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ msg_ok "Set up MariaDB"
5555
msg_info "Installing Pelican Panel"
5656
RELEASE=$(curl -fsSL https://api.github.com/repos/pelican-dev/panel/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
5757
mkdir /opt/pelican-panel
58-
cd /opt/pelican-panel || exit
58+
cd /opt/pelican-panel
5959
curl -fsSL "https://github.com/pelican-dev/panel/releases/download/v${RELEASE}/panel.tar.gz" -o $(basename "https://github.com/pelican-dev/panel/releases/download/v${RELEASE}/panel.tar.gz")
6060
tar -xzf "panel.tar.gz"
6161
$STD composer install --no-dev --optimize-autoloader --no-interaction

install/prowlarr-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ msg_info "Installing Prowlarr"
2121
temp_file="$(mktemp)"
2222
mkdir -p /var/lib/prowlarr/
2323
chmod 775 /var/lib/prowlarr/
24-
cd /var/lib/prowlarr/ || exit
24+
cd /var/lib/prowlarr/
2525
RELEASE=$(curl -fsSL https://api.github.com/repos/Prowlarr/Prowlarr/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
2626
curl -fsSL "https://github.com/Prowlarr/Prowlarr/releases/download/v${RELEASE}/Prowlarr.master.${RELEASE}.linux-core-x64.tar.gz" -o "$temp_file"
2727
$STD tar -xvzf "$temp_file"

install/pterodactyl-panel-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ read -p "Enter your Last Name: " NAME_LAST
6060
msg_info "Installing pterodactyl Panel"
6161
RELEASE=$(curl -fsSL https://api.github.com/repos/pterodactyl/panel/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
6262
mkdir /opt/pterodactyl-panel
63-
cd /opt/pterodactyl-panel || exit
63+
cd /opt/pterodactyl-panel
6464
curl -fsSL "https://github.com/pterodactyl/panel/releases/download/v${RELEASE}/panel.tar.gz" -o $(basename "https://github.com/pterodactyl/panel/releases/download/v${RELEASE}/panel.tar.gz")
6565
tar -xzf "panel.tar.gz"
6666
cp .env.example .env

0 commit comments

Comments
 (0)