Fixing directory location and default config

This commit is contained in:
Gamerboy59 2024-09-08 22:42:17 +02:00 committed by GitHub
commit 0cf5bb6d8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 5 deletions

View file

@ -11,7 +11,7 @@ fi
# Check if rpxy-webui is installed
if dpkg-query -W -f='${Status}' rpxy-webui 2>/dev/null | grep -q "install ok installed"; then
echo "rpxy-webui is installed. Starting rpxy with rpxy-webui"
exec /usr/local/bin/rpxy -w -c /var/www/rpxy-webui/storage/app/config.toml
exec /usr/bin/rpxy -w -c /var/www/rpxy-webui/storage/app/config.toml
else
echo "rpxy-webui is not installed. Starting with default config"
@ -25,5 +25,5 @@ else
echo "# Default rpxy config file" > /etc/rpxy/config.toml
fi
exec /usr/local/bin/rpxy -c /etc/rpxy/config.toml
exec /usr/bin/rpxy -c /etc/rpxy/config.toml
fi