Skip to content

Commit

Permalink
Run rc.news as ROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Oct 7, 2024
1 parent 7c80fc3 commit 89b3b56
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,21 @@ jobs:
--with-perl --with-python --with-sasl --with-zlib
- run: make
- run: sudo make install
- run: systemctl status inn2 || true
- run: env
# - run: mkdir -p $RUNNER_WORKSPACE/inn-install/db
- run: sudo chown -R news:news $RUNNER_WORKSPACE/inn-install
# - run: sudo -u news INN_HOSTNAME=inn.github-action $RUNNER_WORKSPACE/inn-install/bin/rc.news start
# This fails on:
# > touch /home/runner/work/inn/inn-install/db/history
# > chmod 0664 /home/runner/work/inn/inn-install/db/history
# > makedbz: cannot chdir to /home/runner/work/inn/inn-install/db: Permission denied

- run: sudo -u news make install

- run: systemctl status inn2 || true
- run: env
# - run: mkdir -p $RUNNER_WORKSPACE/inn-install/db
# - run: sudo chown -R news:news $RUNNER_WORKSPACE/inn-install
- run: sudo -u news INN_HOSTNAME=inn.github-action $RUNNER_WORKSPACE/inn-install/bin/rc.news start

# CAUTION: Running as root is dangerous.
- run: sudo INN_HOSTNAME=inn.github-action $RUNNER_WORKSPACE/inn-install/bin/rc.news start
# - run: sudo INN_HOSTNAME=inn.github-action $RUNNER_WORKSPACE/inn-install/bin/rc.news start



Expand Down

0 comments on commit 89b3b56

Please sign in to comment.