Skip to content

Commit

Permalink
Update ownship of /config/scripts and /config/userdata to root:vyatta…
Browse files Browse the repository at this point in the history
…cfg.
  • Loading branch information
None committed Jun 29, 2017
1 parent f4642c6 commit 9ed27e3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions config/scripts/post-config.d/hooks.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
#!/bin/bash
source /config/user-data/edgerouter-backup.conf

# This script runs at boot of the EdgeRouter
# Fix ownership
sudo chown -R root:vyattacfg /config/userdata
sudo chown -R root:vyattacfg /config/scripts

# Ensure scripts are executable
sudo chmod +x /config/user-data/hooks/*

# Generate symlinks to hook script(s)
sudo ln -fs /config/user-data/hooks/* /etc/commit/post-hooks.d/

# Ensure scripts are executable
sudo chmod +x /config/user-data/hooks/*
exit 0
exit 0

0 comments on commit 9ed27e3

Please sign in to comment.