Hotfix
This commit is contained in:
@@ -23,6 +23,7 @@ Added:
|
|||||||
- Prowlarr
|
- Prowlarr
|
||||||
- Readarr
|
- Readarr
|
||||||
- Lidarr
|
- Lidarr
|
||||||
|
- UID/GID's are now static, this should make future backups and migrations more predictable.
|
||||||
|
|
||||||
Migration:
|
Migration:
|
||||||
- Due to how UID/GID's are handled in this new version, certain services
|
- Due to how UID/GID's are handled in this new version, certain services
|
||||||
|
|||||||
@@ -172,13 +172,13 @@ with lib; let
|
|||||||
|
|
||||||
echo "Backing up /etc/passwd and /etc/group..."
|
echo "Backing up /etc/passwd and /etc/group..."
|
||||||
|
|
||||||
mkdir "${nixarr.stateDir}/migration-backup"
|
mkdir -p "${nixarr.stateDir}/migration-backup"
|
||||||
cp /etc/passwd "${nixarr.stateDir}/migration-backup/passwd.bak"
|
cp /etc/passwd "${nixarr.stateDir}/migration-backup/passwd.bak"
|
||||||
cp /etc/group "${nixarr.stateDir}/migration-backup/group.bak"
|
cp /etc/group "${nixarr.stateDir}/migration-backup/group.bak"
|
||||||
|
|
||||||
echo "Wiping all nixarr users and groups from /etc/passwd and /etc/group..."
|
echo "Wiping all nixarr users and groups from /etc/passwd and /etc/group..."
|
||||||
|
|
||||||
sed -iE '/^(audiobookshelf|autobrr|bazarr|cross-seed|jellyfin|jellyseerr|lidarr|plex|prowlarr|radarr|readarr|recyclarr|sabnzbd|sonarr|streamer|torrenter|transmission|usenet)/d' /etc/passwd
|
sed -iE '/^(audiobookshelf|autobrr|bazarr|cross-seed|jellyfin|jellyseerr|lidarr|plex|prowlarr|radarr|readarr|recyclarr|sabnzbd|sonarr|streamer|torrenter|transmission|usenet)/d' /etc/passwd
|
||||||
sed -iE '/^(autobrr|cross-seed|jellyseerr|media|prowlarr|recyclarr|sabnzbd|streamer|torrenter|transmission|usenet)/d' /etc/group
|
sed -iE '/^(autobrr|cross-seed|jellyseerr|media|prowlarr|recyclarr|sabnzbd|streamer|torrenter|transmission|usenet)/d' /etc/group
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ in {
|
|||||||
groups.${globals.plex.group}.gid = globals.gids.${globals.plex.group};
|
groups.${globals.plex.group}.gid = globals.gids.${globals.plex.group};
|
||||||
users.${globals.plex.user} = {
|
users.${globals.plex.user} = {
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
group = group;
|
group = globals.plex.group;
|
||||||
uid = globals.uids.${globals.plex.user};
|
uid = globals.uids.${globals.plex.user};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ in {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 600 ${ini-file-target}
|
chmod 600 ${ini-file-target}
|
||||||
chown usenet:media ${ini-file-target}
|
chown ${globals.sabnzbd.user}:${globals.sabnzbd.group} ${ini-file-target}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -189,7 +189,7 @@ in {
|
|||||||
groups.${globals.sabnzbd.group}.gid = globals.gids.${globals.sabnzbd.group};
|
groups.${globals.sabnzbd.group}.gid = globals.gids.${globals.sabnzbd.group};
|
||||||
users.${globals.sabnzbd.user} = {
|
users.${globals.sabnzbd.user} = {
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
group = group;
|
group = globals.sabnzbd.group;
|
||||||
uid = globals.uids.${globals.sabnzbd.user};
|
uid = globals.uids.${globals.sabnzbd.user};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ in {
|
|||||||
bazarr = 232;
|
bazarr = 232;
|
||||||
lidarr = 306;
|
lidarr = 306;
|
||||||
prowlarr = 293;
|
prowlarr = 293;
|
||||||
jellyseerr = 250;
|
jellyseerr = 262;
|
||||||
sonarr = 274;
|
sonarr = 274;
|
||||||
radarr = 275;
|
radarr = 275;
|
||||||
readarr = 250;
|
readarr = 250;
|
||||||
|
|||||||
Reference in New Issue
Block a user