diff --git a/spk/fengoffice/src/wizard/install_uifile b/spk/fengoffice/src/wizard/install_uifile deleted file mode 100644 index bfbe2506ffa8..000000000000 --- a/spk/fengoffice/src/wizard/install_uifile +++ /dev/null @@ -1,41 +0,0 @@ -[{ - "step_title": "Feng Office database configuration", - "items": [{ - "type": "password", - "desc": "Enter your MySQL password.", - "subitems": [{ - "key": "wizard_mysql_password_root", - "desc": "Root password" - }] - }, { - "type": "password", - "desc": "A 'fengoffice' MySQL user and database will be created. Please enter a password for the 'fengoffice' user.", - "subitems": [{ - "key": "wizard_mysql_password_fengoffice", - "desc": "fengoffice password" - }] - }] -}, { - "step_title": "Feng Office configuration", - "items": [{ - "type": "textfield", - "desc": "Domain name of your DiskStation. For example: you.synology.me.", - "subitems": [{ - "key": "wizard_domain_name", - "desc": "Domain name" - }] - }, { - "type": "multiselect", - "subitems": [{ - "key": "wizard_create_db", - "desc": "Creates initial DB", - "defaultValue": true, - "hidden": true - }, { - "key": "mysql_grant_user", - "desc": "Configures user rights", - "defaultValue": true, - "hidden": true - }] - }] -}] diff --git a/spk/fengoffice/src/wizard/install_uifile.sh b/spk/fengoffice/src/wizard/install_uifile.sh new file mode 100644 index 000000000000..675006ce00a7 --- /dev/null +++ b/spk/fengoffice/src/wizard/install_uifile.sh @@ -0,0 +1,124 @@ +#!/bin/bash + +INTERNAL_IP=$(ip -4 route get 8.8.8.8 | awk '/8.8.8.8/ && /src/ {print $NF}') + +quote_json () +{ + sed -e 's|\\|\\\\|g' -e 's|\"|\\\"|g' +} + +page_append () +{ + if [ -z "$1" ]; then + echo "$2" + elif [ -z "$2" ]; then + echo "$1" + else + echo "$1,$2" + fi +} + +getPasswordValidator() +{ + validator=$(/bin/cat< 0' "${PHP_CFG_PATH}" >/dev/null; then + return 0 # true + else + return 1 # false + fi +} + +PAGE_INSTALL_CONFIG=$(/bin/cat< "${SYNOPKG_TEMP_LOGFILE}" +} + +main "$@"