mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-09-01 02:21:52 +02:00
silence usermod on start
This commit is contained in:
@@ -9,8 +9,8 @@ GRID=$(stat --format="%g" "$DATA_DIR")
|
|||||||
|
|
||||||
# If user is not root, modify the archivebox user+files to have the same uid,gid
|
# If user is not root, modify the archivebox user+files to have the same uid,gid
|
||||||
if [[ "$USID" != 0 && "$GRID" != 0 ]]; then
|
if [[ "$USID" != 0 && "$GRID" != 0 ]]; then
|
||||||
usermod -u "$USID" "$ARCHIVEBOX_USER"
|
usermod -u "$USID" "$ARCHIVEBOX_USER" > /dev/null 2>&1
|
||||||
groupmod -g "$GRID" "$ARCHIVEBOX_USER"
|
groupmod -g "$GRID" "$ARCHIVEBOX_USER" > /dev/null 2>&1
|
||||||
chown -R "$USID":"$GRID" "/home/$ARCHIVEBOX_USER"
|
chown -R "$USID":"$GRID" "/home/$ARCHIVEBOX_USER"
|
||||||
chown "$USID":"$GRID" "$DATA_DIR"
|
chown "$USID":"$GRID" "$DATA_DIR"
|
||||||
chown "$USID":"$GRID" "$DATA_DIR/*" > /dev/null 2>&1 || true
|
chown "$USID":"$GRID" "$DATA_DIR/*" > /dev/null 2>&1 || true
|
||||||
|
Reference in New Issue
Block a user