-
Notifications
You must be signed in to change notification settings - Fork 10
50. Upgrade from DSM 6.x to DSM 7.x
Packages created by MODS can run either of DSM 7.x or on DSM 6.x and older, but not on both!
This is due to the new restrictions of DSM 7.x to be found in the Developer Guide. Among others, the minimum firmware of a package for DSM 7.x must be 7.0-40000. Also, a package for DSM 7.x may only run with the privilege 'package' and not anymore with the privilege 'system' or 'root'.
In order to upgrade a Package created with MODS, from DSM 6.x to DSM 7.x, do the following changes:
- In MODS Min Firm, set: 7.0-40000
- In MODS Dependencies, set: nginx.service instead of nginx in instuninst_restart_services and startstop_restrat_services
- In MODS menu "Conf" > "privilege", set: Run-As: Package
Also, if your package had a dependency on "Init_3rdParty", it won't work anymore. You have better replace it with the CGI router trick explained here.
If your package is using a "central CGI router" with a config file deployed under nginx conf folder, you will also have to look here for possible workarounds. Indeed, your installation scripts won't have access into that nginx conf folder as they don't run as root anymore...