docker – Blame information for rev 62

Subversion Repositories:
Rev:
Rev Author Line No. Line
62 office 1 #!/usr/bin/with-contenv sh
2 # shellcheck shell=sh
3  
4 if [ -n "${PGID}" ] && [ "${PGID}" != "$(id -g rtorrent)" ]; then
5 echo "Switching to PGID ${PGID}..."
6 sed -i -e "s/^rtorrent:\([^:]*\):[0-9]*/rtorrent:\1:${PGID}/" /etc/group
7 sed -i -e "s/^rtorrent:\([^:]*\):\([0-9]*\):[0-9]*/rtorrent:\1:\2:${PGID}/" /etc/passwd
8 fi
9 if [ -n "${PUID}" ] && [ "${PUID}" != "$(id -u rtorrent)" ]; then
10 echo "Switching to PUID ${PUID}..."
11 sed -i -e "s/^rtorrent:\([^:]*\):[0-9]*:\([0-9]*\)/rtorrent:\1:${PUID}:\2/" /etc/passwd
12 fi