File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -23,6 +23,14 @@ msg_ok "Installed Dependencies"
2323fetch_and_deploy_gh_release " frankenphp" " php/frankenphp" " singlefile" " latest" " /opt/frankenphp" " frankenphp-linux-$( arch_resolve x86_64 aarch64) -gnu"
2424fetch_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+
2634msg_info " Installing Composer"
2735curl -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
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ fetch_and_deploy_gh_release "shoko" "ShokoAnime/ShokoServer" "prebuild" "latest"
2525
2626msg_info " Creating Service"
2727mkdir -p /opt/shoko_data
28- chmod +x /opt/shoko/publish/ Shoko.CLI
28+ chmod +x /opt/shoko/Shoko.CLI
2929cat << EOF >/etc/systemd/system/shoko.service
3030[Unit]
3131Description=Shoko Server
@@ -35,10 +35,10 @@ After=network-online.target
3535[Service]
3636Type=simple
3737User=root
38- WorkingDirectory=/opt/shoko/publish
38+ WorkingDirectory=/opt/shoko
3939Environment=HOME=/opt/shoko_data
4040Environment=DOTNET_CLI_TELEMETRY_OPTOUT=1
41- ExecStart=/opt/shoko/publish/ Shoko.CLI
41+ ExecStart=/opt/shoko/Shoko.CLI
4242Restart=on-failure
4343RestartSec=10
4444
You can’t perform that action at this time.
0 commit comments