-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
redesign shared folder handling (#5649)
* redesign shared folder handling - avoid use of wizard variable `wizard_volume` in installer.functions - dsm 7 preinst function must not validate volume of shared folder, as shares are fully provided by DSM - update evaluation of SHARED_PATH on DSM 7 - simplify EFF_USER definition (we do not support to run DSM 5 packages on DSM 6 anymore) * add Makefile variable SERVICE_WIZARD_SHARENAME for new approach - introduce variable SERVICE_WIZARD_SHARENAME for redesigned share folder handling - document make variables SERVICE_WIZARD_SHARE and USE_DATA_SHARE_WORKER as deprecated - update demoservice with new shared folder handling - use start.sh to start demoservice since SERVICE_COMMAND with parameters does not work on DSM with ash shell - use python3 for demoservice, when available in path - log SHARE_PATH and SHARE_NAME variables in demoservice installer log - fix function load_variables_from_file (does not work when called within sub shell by call_func) - drop support for SERVICE_EXE (deprecated since DSM 7 support) - drop support for SERVICE_WIZARD_GROUP - initialize and log variables for shared folder in function linitialize_variables - use "sc-" user prefix for DSM 5 too - remove check for shared folder existence in preinst - fix load_variables_from_file (avoid use of cut with --delimiter, to make it POSIX compatible) - avoid to add duplicate user to shared folders without resource workers (SRM, DSM5, DSM6 with SERVICE_WIZARD_SHARE) - fix save_wizard_variables to not delete installer-variables when variables are not set (i.e. for UPGRADE without wizard) * fix evaluation of share path - use realpath (abspath is not supported on DSM) * fix DSM 7 uninstaller - use realpath to remove files in etc folder * cleanups - avoid reading already defined variables from installer-variables - save wizard variables after creation of shared folders (SHARE_PATH is set to full path at creation time) (DSM 6, DSM 5) * fix icon creation for web service packages - create icons when DSM_UI_CONFIG is defined * add demowebservice package - add demowebservice to document how to create a web service apps - use shared folder to show how to access shared folders by the package * update demowebserice - support DSM 5 - fully support dark mode * update cops - remove workaround to create package icons * update adminer - adjust patch to current version * spksrc.service.mk: fix installation of app/config - fix installation of app/config when DSM_UI_CONFIG is defined - ensure DSM_UI_CONFIG has privilege over generated app/config (and is not affected by NO_SERVICE_SHORTCUT) - add Makefile variable SERVICE_DESC to define DESC property in app/config (the whole package description is often not ment to be shown as tooltip of the app icon) - remove the extra installation of app/config since this is fixed now (demowebservice, adminer, cops, owncloud) - remove obsolete dsm-control.sh in adminer package (same is created by the framework with STARTABLE=no) - throw error when SERVICE_USER is not properly defined (only 'auto' is supported) * spk/aria2: remove SERVICE_WIZARD_GROUP - SERVICE_WIZARD_GROUP is not supported anymore * enable NO_SERVICE_SHORTCUT for DSM_UI_CONFIG - fix NO_SERVICE_SHORTCUT to be applied independent of DSM_UI_CONFIG: - it must be possible to disable creation of app/config file when app (webservice) is fully defined in conf/resource - force icon creation when DSM_UI_CONFIG is defined - NO_SERVICE_SHORTCUT must be ignored for icon creation, when DSM_UI_CONFIG is defined * enhance demowebservice: - document and avoid web server and PHP dependency as SPK_DEPENDS for all except DSM 7 - DSM 6: remove conf/resorce for webservice (supported on DSM 7 only) - add port 8889 for Web Portal on DSM 7 - add install wizard page with remarks - reverse proxy configuration on DSM 7 does not work and is not added to resource file (#5544) * always define EFF_USER for service-setup on DSM 7 (fixes #5041) * creation of shared folder always requires a service user - force SERVICE_USER = auto with SERVICE_WIZARD_SHARENAME - remove SERVICE_USER = auto in demowebservice Makefile as defined by framework now (forced by SERVICE_WIZARD_SHARENAME)
- Loading branch information
Showing
32 changed files
with
923 additions
and
504 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.