Skip to content

Commit

Permalink
DSM6: Set MYSQL and MYSQLDUMP variables depending on buildnumber
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Bean committed Apr 12, 2016
1 parent f48fd3a commit d690076
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions spk/fengoffice/src/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ VERSION="2.5.1.2"
INSTALL_DIR="/usr/local/${PACKAGE}"
SSS="/var/packages/${PACKAGE}/scripts/start-stop-status"
WEB_DIR="/var/services/web"
MYSQL="/usr/syno/mysql/bin/mysql"
MYSQLDUMP="/usr/syno/mysql/bin/mysqldump"
USER="$([ $(/bin/get_key_value /etc.defaults/VERSION buildnumber) -ge 4418 ] && echo -n http || echo -n nobody)"
MYSQL="$([ $(/bin/get_key_value /etc.defaults/VERSION buildnumber) -ge 7135 ] && echo -n /bin/mysql || echo -n /usr/syno/mysql/bin/mysql)"
MYSQLDUMP="$([ $(/bin/get_key_value /etc.defaults/VERSION buildnumber) -ge 7135 ] && echo -n /bin/mysqldump || echo -n /usr/syno/mysql/bin/mysqldump)"ump"
MYSQL_USER="fengoffice"
MYSQL_DATABASE="fengoffice"
TMP_DIR="${SYNOPKG_PKGDEST}/../../@tmp"
Expand Down
4 changes: 2 additions & 2 deletions spk/ffsync/src/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ FWPORTS="/var/packages/${PACKAGE}/scripts/${PACKAGE}.sc"
USER="ffsync"
GROUP="nobody"

MYSQL="/usr/syno/mysql/bin/mysql"
MYSQLDUMP="/usr/syno/mysql/bin/mysqldump"
MYSQL="$([ $(/bin/get_key_value /etc.defaults/VERSION buildnumber) -ge 7135 ] && echo -n /bin/mysql || echo -n /usr/syno/mysql/bin/mysql)"
MYSQLDUMP="$([ $(/bin/get_key_value /etc.defaults/VERSION buildnumber) -ge 7135 ] && echo -n /bin/mysqldump || echo -n /usr/syno/mysql/bin/mysqldump)"

INI_FILE="${INSTALL_DIR}/var/ffsync.ini"
TMP_DIR="${SYNOPKG_PKGDEST}/../../@tmp"
Expand Down
4 changes: 2 additions & 2 deletions spk/horde/src/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ PACKAGE_NAME="com.synocommunity.packages.${PACKAGE}"
INSTALL_DIR="/usr/local/${PACKAGE}"
SSS="/var/packages/${PACKAGE}/scripts/start-stop-status"
WEB_DIR="/var/services/web"
MYSQL="/usr/syno/mysql/bin/mysql"
MYSQLDUMP="/usr/syno/mysql/bin/mysqldump"
USER="$([ $(/bin/get_key_value /etc.defaults/VERSION buildnumber) -ge 4418 ] && echo -n http || echo -n nobody)"
MYSQL="$([ $(/bin/get_key_value /etc.defaults/VERSION buildnumber) -ge 7135 ] && echo -n /bin/mysql || echo -n /usr/syno/mysql/bin/mysql)"
MYSQLDUMP="$([ $(/bin/get_key_value /etc.defaults/VERSION buildnumber) -ge 7135 ] && echo -n /bin/mysqldump || echo -n /usr/syno/mysql/bin/mysqldump)"
MYSQL_USER="horde"
MYSQL_DATABASE="horde"
TMP_DIR="${SYNOPKG_PKGDEST}/../../@tmp"
Expand Down
4 changes: 2 additions & 2 deletions spk/mantisbt/src/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ PACKAGE_NAME="com.synocommunity.packages.${PACKAGE}"
# Others
INSTALL_DIR="/usr/local/${PACKAGE}"
WEB_DIR="/var/services/web"
MYSQL="/usr/syno/mysql/bin/mysql"
MYSQLDUMP="/usr/syno/mysql/bin/mysqldump"
USER="$([ $(/bin/get_key_value /etc.defaults/VERSION buildnumber) -ge 4418 ] && echo -n http || echo -n nobody)"
MYSQL="$([ $(/bin/get_key_value /etc.defaults/VERSION buildnumber) -ge 7135 ] && echo -n /bin/mysql || echo -n /usr/syno/mysql/bin/mysql)"
MYSQLDUMP="$([ $(/bin/get_key_value /etc.defaults/VERSION buildnumber) -ge 7135 ] && echo -n /bin/mysqldump || echo -n /usr/syno/mysql/bin/mysqldump)"
MYSQL_USER="mantisbt"
MYSQL_DATABASE="mantisbt"
TMP_DIR="${SYNOPKG_PKGDEST}/../../@tmp"
Expand Down
4 changes: 2 additions & 2 deletions spk/newznab/src/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ DNAME="Newznab"
INSTALL_DIR="/usr/local/${PACKAGE}"
SSS="/var/packages/${PACKAGE}/scripts/start-stop-status"
WEB_DIR="/var/services/web"
MYSQL="/usr/syno/mysql/bin/mysql"
MYSQLDUMP="/usr/syno/mysql/bin/mysqldump"
USER="$([ $(/bin/get_key_value /etc.defaults/VERSION buildnumber) -ge 4418 ] && echo -n http || echo -n nobody)"
MYSQL="$([ $(/bin/get_key_value /etc.defaults/VERSION buildnumber) -ge 7135 ] && echo -n /bin/mysql || echo -n /usr/syno/mysql/bin/mysql)"
MYSQLDUMP="$([ $(/bin/get_key_value /etc.defaults/VERSION buildnumber) -ge 7135 ] && echo -n /bin/mysqldump || echo -n /usr/syno/mysql/bin/mysqldump)"
MYSQL_USER="newznab"
MYSQL_DATABASE="newznab"
TMP_DIR="${SYNOPKG_PKGDEST}/../../@tmp"
Expand Down
4 changes: 2 additions & 2 deletions spk/owncloud/src/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ PACKAGE_NAME="com.synocommunity.packages.${PACKAGE}"
# Others
INSTALL_DIR="/usr/local/${PACKAGE}"
WEB_DIR="/var/services/web"
MYSQL="/usr/syno/mysql/bin/mysql"
MYSQLDUMP="/usr/syno/mysql/bin/mysqldump"
USER="$([ $(/bin/get_key_value /etc.defaults/VERSION buildnumber) -ge 4418 ] && echo -n http || echo -n nobody)"
MYSQL="$([ $(/bin/get_key_value /etc.defaults/VERSION buildnumber) -ge 7135 ] && echo -n /bin/mysql || echo -n /usr/syno/mysql/bin/mysql)"
MYSQLDUMP="$([ $(/bin/get_key_value /etc.defaults/VERSION buildnumber) -ge 7135 ] && echo -n /bin/mysqldump || echo -n /usr/syno/mysql/bin/mysqldump)"
MYSQL_USER="owncloud"
MYSQL_DATABASE="owncloud"
TMP_DIR="${SYNOPKG_PKGDEST}/../../@tmp"
Expand Down
4 changes: 2 additions & 2 deletions spk/roundcube/src/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ DNAME="Roundcube Webmail"
# Others
INSTALL_DIR="/usr/local/${PACKAGE}"
WEB_DIR="/var/services/web"
MYSQL="/usr/syno/mysql/bin/mysql"
MYSQLDUMP="/usr/syno/mysql/bin/mysqldump"
USER="$([ $(/bin/get_key_value /etc.defaults/VERSION buildnumber) -ge 4418 ] && echo -n http || echo -n nobody)"
MYSQL="$([ $(/bin/get_key_value /etc.defaults/VERSION buildnumber) -ge 7135 ] && echo -n /bin/mysql || echo -n /usr/syno/mysql/bin/mysql)"
MYSQLDUMP="$([ $(/bin/get_key_value /etc.defaults/VERSION buildnumber) -ge 7135 ] && echo -n /bin/mysqldump || echo -n /usr/syno/mysql/bin/mysqldump)"
MYSQL_USER="roundcube"
MYSQL_DATABASE="roundcube"
TMP_DIR="${SYNOPKG_PKGDEST}/../../@tmp"
Expand Down
4 changes: 2 additions & 2 deletions spk/selfoss/src/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ DNAME="Selfoss"
INSTALL_DIR="/usr/local/${PACKAGE}"
SSS="/var/packages/${PACKAGE}/scripts/start-stop-status"
WEB_DIR="/var/services/web"
MYSQL="/usr/syno/mysql/bin/mysql"
MYSQLDUMP="/usr/syno/mysql/bin/mysqldump"
USER="$([ $(/bin/get_key_value /etc.defaults/VERSION buildnumber) -ge 4418 ] && echo -n http || echo -n nobody)"
MYSQL="$([ $(/bin/get_key_value /etc.defaults/VERSION buildnumber) -ge 7135 ] && echo -n /bin/mysql || echo -n /usr/syno/mysql/bin/mysql)"
MYSQLDUMP="$([ $(/bin/get_key_value /etc.defaults/VERSION buildnumber) -ge 7135 ] && echo -n /bin/mysqldump || echo -n /usr/syno/mysql/bin/mysqldump)"
MYSQL_USER="selfoss"
MYSQL_DATABASE="selfoss"
TMP_DIR="${SYNOPKG_PKGDEST}/../../@tmp"
Expand Down
4 changes: 2 additions & 2 deletions spk/tt-rss/src/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ SSS="/var/packages/${PACKAGE}/scripts/start-stop-status"
WEB_DIR="/var/services/web"
USER="$([ $(/bin/get_key_value /etc.defaults/VERSION buildnumber) -ge 4418 ] && echo -n http || echo -n nobody)"
PHP="$([ $(/bin/get_key_value /etc.defaults/VERSION buildnumber) -ge 7135 ] && echo -n /usr/local/bin/php56 || echo -n /usr/bin/php)"
MYSQL="/usr/syno/mysql/bin/mysql"
MYSQLDUMP="/usr/syno/mysql/bin/mysqldump"
MYSQL="$([ $(/bin/get_key_value /etc.defaults/VERSION buildnumber) -ge 7135 ] && echo -n /bin/mysql || echo -n /usr/syno/mysql/bin/mysql)"
MYSQLDUMP="$([ $(/bin/get_key_value /etc.defaults/VERSION buildnumber) -ge 7135 ] && echo -n /bin/mysqldump || echo -n /usr/syno/mysql/bin/mysqldump)"
MYSQL_USER="ttrss"
MYSQL_DATABASE="ttrss"
TMP_DIR="${SYNOPKG_PKGDEST}/../../@tmp"
Expand Down

0 comments on commit d690076

Please sign in to comment.