File tree Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -43,15 +43,15 @@ cat > pkgbuild/scripts/postinstall << EOF
4343#!/bin/sh
4444
4545# Normalise the config if it exists, generate it if it doesn't
46- if [ -f /etc/yggdrasil.conf ];
46+ if [ -f /usr/local/ etc/yggdrasil.conf ];
4747then
4848 mkdir -p /Library/Preferences/Yggdrasil
4949 echo "Backing up configuration file to /Library/Preferences/Yggdrasil/yggdrasil.conf.` date +%Y%m%d` "
50- cp /etc/yggdrasil.conf /Library/Preferences/Yggdrasil/yggdrasil.conf.` date +%Y%m%d`
51- echo "Normalising /etc/yggdrasil.conf"
52- /usr/local/bin/yggdrasil -useconffile /Library/Preferences/Yggdrasil/yggdrasil.conf.` date +%Y%m%d` -normaliseconf > /etc/yggdrasil.conf
50+ cp /usr/local/ etc/yggdrasil.conf /Library/Preferences/Yggdrasil/yggdrasil.conf.` date +%Y%m%d`
51+ echo "Normalising /usr/local/ etc/yggdrasil.conf"
52+ /usr/local/bin/yggdrasil -useconffile /Library/Preferences/Yggdrasil/yggdrasil.conf.` date +%Y%m%d` -normaliseconf > /usr/local/ etc/yggdrasil.conf
5353else
54- /usr/local/bin/yggdrasil -genconf > /etc/yggdrasil.conf
54+ /usr/local/bin/yggdrasil -genconf > /usr/local/ etc/yggdrasil.conf
5555fi
5656
5757# Unload existing Yggdrasil launchd service, if possible
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33<plist version =" 1.0" >
4- <dict >
4+ <dict >
55 <key >Label </key >
66 <string >yggdrasil </string >
77 <key >ProgramArguments </key >
88 <array >
9- <string >sh </string >
10- <string >-c </string >
11- <string >/usr/local/bin/yggdrasil -useconffile /etc/yggdrasil.conf </string >
9+ <string >/usr/local/bin/yggdrasil </string >
10+ <string >-useconffile </string >
11+ <string >/usr/local/etc/yggdrasil.conf </string >
1212 </array >
1313 <key >KeepAlive </key >
1414 <true />
1515 <key >RunAtLoad </key >
1616 <true />
17- <key >ProcessType </key >
18- <string >Interactive </string >
1917 <key >StandardOutPath </key >
20- <string >/tmp/ yggdrasil.stdout .log </string >
18+ <string >/Library/Logs/ yggdrasil.log </string >
2119 <key >StandardErrorPath </key >
22- <string >/tmp/ yggdrasil.stderr .log </string >
23- </dict >
20+ <string >/Library/Logs/ yggdrasil.log </string >
21+ </dict >
2422</plist >
You can’t perform that action at this time.
0 commit comments