Skip to content

Commit

Permalink
fix: fix exec proxy, update sudo timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
zthxxx committed Apr 7, 2019
1 parent 5eb894e commit b0c49ec
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 3 additions & 2 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ fi



sudo -i sudo -u $USER -i "${workspace}/init-proxy.sh"
sudo -i sudo -u $USER -i "${workspace}/init-zsh.sh"
bash "${workspace}/init-proxy.sh"
bash "${workspace}/init-zsh.sh"

zsh init-application.sh
zsh init-sys-preference.sh
zsh init-app-preference.sh
4 changes: 2 additions & 2 deletions md5sum.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ fea91d6d6f7368fd966cdd2364b5e122 init-app-preference.sh
1cacf178c73be8df2d3f554ad5d4da76 init-proxy.sh
26aecf13f61c9c25aa7540f1d79466a2 init-sys-preference.sh
e67141ff6ac44519f5fe0bbcfb257b38 init-zsh.sh
945230e69e8afbbee6d019f9116bf65a init.sh
3925e076d8386b88235684f8b618e6af init.sh
5112aa4927c7b1232c40fe2b7ab5b2eb template-render.sh
8a18925d5a19edfc77f75aa3cd419c0b verifier.sh
64cd3efe3af3c89cdb7c65949925a100 verifier.sh
7e6d5e32fa831cc077c9062786829ebb specific-UTIs-for-app.template
958535bf98b63dc219044405bab594ba app-preferences/Spotlight.alfredappearance
b714940e9676fa90f0a28360df8e9eea app-preferences/aria2.conf
Expand Down
5 changes: 5 additions & 0 deletions verifier.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,9 @@ verify

MAIN="init.sh"
chmod +x "$MAIN"

sudo perl -i -pe "s/^Defaults\tenv_reset.*/Defaults\tenv_reset, timestamp_timeout=-1/" /etc/sudoers

sudo -i sudo -u $USER -i "`pwd`/${MAIN}" "`pwd`"

sudo perl -i -pe "s/^Defaults\tenv_reset.*/Defaults\tenv_reset, timestamp_timeout=60/" /etc/sudoers

0 comments on commit b0c49ec

Please sign in to comment.