-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EFF_USER and USER is missing for DSM7 in service-script.sh #5041
Comments
Removing the |
Defining |
I think the use of |
$EFF_USER should contains of the $USER with the prefix "sc-" for DMS 6 and higher In pre DSM 6 packages the name of the user was the same as the name of the package (e.g. $SYNOPKG_PKGNAME) So in every package the EFF_USER is used and depending on the DSM version it is equal to the USER if the DSM version is lower then 6 else (DSM6 and higher) and the "sc-" prefix is added to create EFF_USER. Because of the fact that DSM 7 packages can only be installed on DSM 7, it could be that this is no longer necessary. |
Thanks @BenjV I much appreciate the history lesson :) |
* 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)
spksrc/mk/spksrc.service.mk
Lines 112 to 127 in 95fe355
The text was updated successfully, but these errors were encountered: