update group permissions in deploy.
Some checks failed
Build and Deploy / build (push) Failing after 1m35s
Some checks failed
Build and Deploy / build (push) Failing after 1m35s
This commit is contained in:
parent
13ecd5a626
commit
c58ce483dd
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@ -31,6 +31,9 @@ jobs:
|
||||
|
||||
- name: Deploy to /opt/immersive
|
||||
run: |
|
||||
# Ensure group write so we can delete old files
|
||||
chmod -R g+w /opt/immersive || true
|
||||
|
||||
# Remove old files except data directory
|
||||
find /opt/immersive -mindepth 1 -maxdepth 1 ! -name 'data' -exec rm -rf {} +
|
||||
|
||||
@ -40,8 +43,9 @@ jobs:
|
||||
# Remove unnecessary directories
|
||||
rm -rf /opt/immersive/.git /opt/immersive/.github
|
||||
|
||||
# Set permissions on start.sh
|
||||
# Set permissions on start.sh and ensure group write for future deploys
|
||||
chmod +x /opt/immersive/start.sh
|
||||
chmod -R g+w /opt/immersive
|
||||
|
||||
# Set ownership to immersive user
|
||||
sudo chown -R immersive:immersive /opt/immersive
|
||||
|
||||
Loading…
Reference in New Issue
Block a user