Convert legacy user.group notation to user:group
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user