-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ownship of /config/scripts and /config/userdata to root:vyatta…
…cfg.
- Loading branch information
None
committed
Jun 29, 2017
1 parent
f4642c6
commit 9ed27e3
Showing
1 changed file
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |