Skip to content

Commit

Permalink
Reverted PUID and PGID implementations (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarons authored Jun 21, 2024
1 parent 8c1d36f commit 6a29e95
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions init.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
#!/bin/sh
PUID=${PUID:-1000}
PGID=${PGID:-1000}
UMASK=${UMASK:-022}
echo '
====================================================
To support this project, please consider sponsoring.
https://github.com/sponsors/mandarons
https://www.buymeacoffee.com/mandarons
https://www.buymeacoffee.com/mandarons
====================================================
'
echo "Using UID as ${PUID}, GID as ${PGID} and UMASK as ${UMASK}..."
addgroup --gid $PGID icd;
adduser -D --uid $PUID icd -G icd; \
echo "icd ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/icd && sudo chmod 0440 /etc/sudoers.d/icd
echo "Changing ownership of /app ... This operation may take significantly longer depending on number of files in your local copy of icloud."
chown -R icd:icd /app
umask $UMASK
su - icd -c "umask $UMASK && cd /app && export PYTHONPATH=/app && export PATH=/venv/bin:$PATH && python ./src/main.py"
cd /app && export PYTHONPATH=/app && export PATH=/venv/bin:$PATH && python ./src/main.py

0 comments on commit 6a29e95

Please sign in to comment.