mirror of
https://github.com/tschettervictor/bsd-apps.git
synced 2025-12-12 18:10:05 +01:00
Update navidrome-install.sh
This commit is contained in:
@@ -9,6 +9,13 @@ if ! [ $(id -u) = 0 ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check for Reinstall
|
||||||
|
if [ "$(ls -d /usr/local/etc/navidrome 2>/dev/null)" ]; then
|
||||||
|
echo "Existing ${APP_NAME} config detected."
|
||||||
|
echo "Starting reinstall..."
|
||||||
|
REINSTALL="true"
|
||||||
|
fi
|
||||||
|
|
||||||
# Install Packages
|
# Install Packages
|
||||||
pkg install -y \
|
pkg install -y \
|
||||||
navidrome
|
navidrome
|
||||||
@@ -29,3 +36,8 @@ echo "---------------"
|
|||||||
echo "Installation complete."
|
echo "Installation complete."
|
||||||
echo "${APP_NAME} is running on port 4533."
|
echo "${APP_NAME} is running on port 4533."
|
||||||
echo "---------------"
|
echo "---------------"
|
||||||
|
if [ "${REINSTALL}" == "true" ]; then
|
||||||
|
echo "You did a reinstall."
|
||||||
|
echo "Please user your old credentials to log in."
|
||||||
|
echo "---------------"
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user