Convert legacy user.group notation to user:group

This commit is contained in:
2026-02-08 15:20:07 +01:00
parent 59ada2477a
commit dd7e9d5953

View File

@@ -23,7 +23,7 @@
# Authors: Ivo Noack aka Insonic <me@jabber.ivonoack.de>
# Stephan Düsterhaupt <me@jabber.stephanduesterhaupt.de>
#
# Copyright (c) 2016-2025 CB-601 - the open tec Elevator <mail@opensource-technology.de>
# Copyright (c) 2016-2026 CB-601 - the open tec Elevator <mail@opensource-technology.de>
# License: MIT
#
# Project Home: https://dev.town-square.de/cb601/edh-keygen
@@ -125,6 +125,11 @@ while IFS= read -r line || [ -n "$line" ]; do
user_group=$(printf "%s" "$line" | awk -F: '{print $5}')
permissions=$(printf "%s" "$line" | awk -F: '{print $6}')
# Convert legacy user.group notation to user:group
ug_user=${user_group%%.*}
ug_group=${user_group#*.}
user_group=$ug_user:$ug_group
echo "$service.service (owner: $owner)..."
# Check service status (must run as root)