anchor.diff:      };
       users.groups.${user} = {};
   
  -    systemd.services.matomo_setup_update = {
  -      # everything needs to set up and up to date before matomo php files are executed
  +    systemd.services.matomo-setup-update = {
  +      # everything needs to set up and up to date before Matomo php files are executed
         requiredBy = [ "${phpExecutionUnit}.service" ];
         before = [ "${phpExecutionUnit}.service" ];
         # the update part of the script can only work if the database is already up and running
  
positive.code:       # e.g. after restoring from backup or moving from another system.
        # Note that ${dataDir}/config/config.ini.php might contain the MySQL password.
        preStart = ''
          # migrate data from piwik to matomo folder
          if [ -d ${deprecatedDataDir} ]; then
            echo "Migrating from ${deprecatedDataDir} to ${dataDir}"
            mv -T ${deprecatedDataDir} ${dataDir}
  
negative.code:     };
  
      systemd.services.${phpExecutionUnit} = {
        # stop phpfpm on package upgrade, do database upgrade via matomo-setup-update, and then restart
        restartTriggers = [ cfg.package ];
        # stop config.ini.php from getting written with read permission for others
        serviceConfig.UMask = "0007";
  