mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-23 11:32:34 -05:00
[docs] Update FreeBSD install scripts
- Add required protobuf-c package - Remove version numbers so we don't need to keep them updated
This commit is contained in:
parent
7584e6377f
commit
a18c73d732
@ -2,8 +2,8 @@
|
|||||||
# Credit thorsteneckel who made the how-to that is the basis for this
|
# Credit thorsteneckel who made the how-to that is the basis for this
|
||||||
# script, see https://gist.github.com/thorsteneckel/c0610fb415c8d0486bce
|
# script, see https://gist.github.com/thorsteneckel/c0610fb415c8d0486bce
|
||||||
|
|
||||||
echo "This script will install OwnTone in FreeBSD 11.0. The script is not"
|
echo "This script will install OwnTone in FreeBSD. The script is not very polished,"
|
||||||
echo "very polished, so you might want to look through it before running it."
|
echo "so you might want to look through it before running it."
|
||||||
read -p "Continue? [y/N] " yn
|
read -p "Continue? [y/N] " yn
|
||||||
if [ "$yn" != "y" ]; then
|
if [ "$yn" != "y" ]; then
|
||||||
exit
|
exit
|
||||||
@ -11,7 +11,8 @@ fi
|
|||||||
|
|
||||||
DEPS="gmake autoconf automake libtool gettext gperf glib pkgconf wget git \
|
DEPS="gmake autoconf automake libtool gettext gperf glib pkgconf wget git \
|
||||||
ffmpeg libconfuse libevent mxml libgcrypt libunistring libiconv curl \
|
ffmpeg libconfuse libevent mxml libgcrypt libunistring libiconv curl \
|
||||||
libplist libinotify avahi sqlite3 alsa-lib libsodium json-c libwebsockets"
|
libplist libinotify avahi sqlite3 alsa-lib libsodium json-c libwebsockets
|
||||||
|
protobuf-c"
|
||||||
echo "The script can install the following dependency packages for you:"
|
echo "The script can install the following dependency packages for you:"
|
||||||
echo $DEPS
|
echo $DEPS
|
||||||
read -p "Should the script install these packages? [y/N] " yn
|
read -p "Should the script install these packages? [y/N] " yn
|
||||||
@ -102,11 +103,11 @@ if [ "$yn" = "y" ]; then
|
|||||||
# Setup user and startup scripts
|
# Setup user and startup scripts
|
||||||
echo "owntone::::::owntone:/nonexistent:/usr/sbin/nologin:" | sudo adduser -w no -D -f -
|
echo "owntone::::::owntone:/nonexistent:/usr/sbin/nologin:" | sudo adduser -w no -D -f -
|
||||||
sudo chown -R owntone:owntone /usr/local/var/cache/owntone
|
sudo chown -R owntone:owntone /usr/local/var/cache/owntone
|
||||||
if [ ! -f scripts/freebsd_start_10.1.sh ]; then
|
if [ ! -f scripts/freebsd_start.sh ]; then
|
||||||
echo "Could not find FreeBSD startup script"
|
echo "Could not find FreeBSD startup script"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
sudo install -m 755 scripts/freebsd_start_10.1.sh /usr/local/etc/rc.d/owntone
|
sudo install -m 755 scripts/freebsd_start.sh /usr/local/etc/rc.d/owntone
|
||||||
|
|
||||||
service owntone enabled
|
service owntone enabled
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
Loading…
x
Reference in New Issue
Block a user