Skip to content

Commit 60b6a2c

Browse files
committed
minor fixess shoko
1 parent 7b81bba commit 60b6a2c

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

ct/shoko.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function update_script() {
3636
msg_ok "Stopped Service"
3737

3838
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "shoko" "ShokoAnime/ShokoServer" "prebuild" "latest" "/opt/shoko" "Shoko.CLI_Framework_any-x64.zip"
39-
chmod +x /opt/shoko/publish/Shoko.CLI
39+
chmod +x /opt/shoko/Shoko.CLI
4040

4141
msg_info "Starting Service"
4242
systemctl start shoko

install/dreeve-install.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ msg_ok "Installed Dependencies"
2323
fetch_and_deploy_gh_release "frankenphp" "php/frankenphp" "singlefile" "latest" "/opt/frankenphp" "frankenphp-linux-$(arch_resolve x86_64 aarch64)-gnu"
2424
fetch_and_deploy_gh_release "dreeve" "dreeveapp/dreeve" "tarball"
2525

26+
msg_info "Providing php CLI"
27+
cat <<'EOF' >/usr/local/bin/php
28+
#!/usr/bin/env bash
29+
exec /opt/frankenphp/frankenphp php-cli "$@"
30+
EOF
31+
chmod +x /usr/local/bin/php
32+
msg_ok "Provided php CLI"
33+
2634
msg_info "Installing Composer"
2735
curl -fsSL https://getcomposer.org/installer -o /tmp/composer-setup.php
2836
$STD /opt/frankenphp/frankenphp php-cli /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer

install/shoko-install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fetch_and_deploy_gh_release "shoko" "ShokoAnime/ShokoServer" "prebuild" "latest"
2525

2626
msg_info "Creating Service"
2727
mkdir -p /opt/shoko_data
28-
chmod +x /opt/shoko/publish/Shoko.CLI
28+
chmod +x /opt/shoko/Shoko.CLI
2929
cat <<EOF >/etc/systemd/system/shoko.service
3030
[Unit]
3131
Description=Shoko Server
@@ -35,10 +35,10 @@ After=network-online.target
3535
[Service]
3636
Type=simple
3737
User=root
38-
WorkingDirectory=/opt/shoko/publish
38+
WorkingDirectory=/opt/shoko
3939
Environment=HOME=/opt/shoko_data
4040
Environment=DOTNET_CLI_TELEMETRY_OPTOUT=1
41-
ExecStart=/opt/shoko/publish/Shoko.CLI
41+
ExecStart=/opt/shoko/Shoko.CLI
4242
Restart=on-failure
4343
RestartSec=10
4444

0 commit comments

Comments
 (0)