parent
747ab8db2d
commit
32c1bb31ac
@ -1,24 +1,24 @@ |
|||||||
@echo off |
@echo off |
||||||
|
|
||||||
REM The directory where Libresonic will create files. Make sure it is writable. |
REM The directory where Libresonic will create files. Make sure it is writable. |
||||||
set SUBSONIC_HOME=c:\libresonic |
set LIBRESONIC_HOME=c:\libresonic |
||||||
|
|
||||||
REM The host name or IP address on which to bind Libresonic. Only relevant if you have |
REM The host name or IP address on which to bind Libresonic. Only relevant if you have |
||||||
REM multiple network interfaces and want to make Libresonic available on only one of them. |
REM multiple network interfaces and want to make Libresonic available on only one of them. |
||||||
REM The default value 0.0.0.0 will bind Libresonic to all available network interfaces. |
REM The default value 0.0.0.0 will bind Libresonic to all available network interfaces. |
||||||
set SUBSONIC_HOST=0.0.0.0 |
set LIBRESONIC_HOST=0.0.0.0 |
||||||
|
|
||||||
REM The port on which Libresonic will listen for incoming HTTP traffic. |
REM The port on which Libresonic will listen for incoming HTTP traffic. |
||||||
set SUBSONIC_PORT=4040 |
set LIBRESONIC_PORT=4040 |
||||||
|
|
||||||
REM The port on which Libresonic will listen for incoming HTTPS traffic (0 to disable). |
REM The port on which Libresonic will listen for incoming HTTPS traffic (0 to disable). |
||||||
set SUBSONIC_HTTPS_PORT=0 |
set LIBRESONIC_HTTPS_PORT=0 |
||||||
|
|
||||||
REM The context path (i.e., the last part of the Libresonic URL). Typically "/" or "/libresonic". |
REM The context path (i.e., the last part of the Libresonic URL). Typically "/" or "/libresonic". |
||||||
set SUBSONIC_CONTEXT_PATH=/ |
set LIBRESONIC_CONTEXT_PATH=/ |
||||||
|
|
||||||
REM The memory limit (max Java heap size) in megabytes. |
REM The memory limit (max Java heap size) in megabytes. |
||||||
set MAX_MEMORY=150 |
set MAX_MEMORY=150 |
||||||
|
|
||||||
java -Xmx%MAX_MEMORY%m -Dlibresonic.home=%SUBSONIC_HOME% -Dlibresonic.host=%SUBSONIC_HOST% -Dlibresonic.port=%SUBSONIC_PORT% -Dlibresonic.httpsPort=%SUBSONIC_HTTPS_PORT% -Dlibresonic.contextPath=%SUBSONIC_CONTEXT_PATH% -jar libresonic-booter-jar-with-dependencies.jar |
java -Xmx%MAX_MEMORY%m -Dlibresonic.home=%LIBRESONIC_HOME% -Dlibresonic.host=%LIBRESONIC_HOST% -Dlibresonic.port=%LIBRESONIC_PORT% -Dlibresonic.httpsPort=%LIBRESONIC_HTTPS_PORT% -Dlibresonic.contextPath=%LIBRESONIC_CONTEXT_PATH% -jar libresonic-booter-jar-with-dependencies.jar |
||||||
|
|
||||||
|
@ -1,13 +1,13 @@ |
|||||||
#!/bin/bash |
#!/bin/bash |
||||||
|
|
||||||
SUBSONIC_HOME="/Library/Application Support/Libresonic" |
LIBRESONIC_HOME="/Library/Application Support/Libresonic" |
||||||
|
|
||||||
chmod oug+rwx "$SUBSONIC_HOME" |
chmod oug+rwx "$LIBRESONIC_HOME" |
||||||
chown root:admin "$SUBSONIC_HOME" |
chown root:admin "$LIBRESONIC_HOME" |
||||||
|
|
||||||
chmod oug+rx "$SUBSONIC_HOME/transcode" |
chmod oug+rx "$LIBRESONIC_HOME/transcode" |
||||||
chown root:admin "$SUBSONIC_HOME/transcode" |
chown root:admin "$LIBRESONIC_HOME/transcode" |
||||||
|
|
||||||
rm -rf "$SUBSONIC_HOME/jetty" |
rm -rf "$LIBRESONIC_HOME/jetty" |
||||||
|
|
||||||
echo Libresonic installation done |
echo Libresonic installation done |
||||||
|
@ -1,11 +1,11 @@ |
|||||||
#!/bin/bash |
#!/bin/bash |
||||||
|
|
||||||
SUBSONIC_HOME="/Library/Application Support/Libresonic" |
LIBRESONIC_HOME="/Library/Application Support/Libresonic" |
||||||
|
|
||||||
# Backup database. |
# Backup database. |
||||||
|
|
||||||
if [ -e "$SUBSONIC_HOME/db" ]; then |
if [ -e "$LIBRESONIC_HOME/db" ]; then |
||||||
rm -rf "$SUBSONIC_HOME/db.backup" |
rm -rf "$LIBRESONIC_HOME/db.backup" |
||||||
cp -R "$SUBSONIC_HOME/db" "$SUBSONIC_HOME/db.backup" |
cp -R "$LIBRESONIC_HOME/db" "$LIBRESONIC_HOME/db.backup" |
||||||
fi |
fi |
||||||
|
|
||||||
|
Loading…
Reference in new issue