diff host/macos/addStartupScripts.sh @ 1635:fd3d56f39450

rearrange startup files
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 14 Dec 2021 18:50:43 -0700
parents host/addStartupScripts.sh@0344a535b1db
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/host/macos/addStartupScripts.sh	Tue Dec 14 18:50:43 2021 -0700
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+. startupScripts.sh;
+
+mkdir -p $localStartup 2>/dev/null;
+
+cd $startup;
+for file in *.plist; do
+    log=${ROOTPWD}"/logs/startup.${file}.log";
+	sed "s~PWD~${startup}~g;\
+	     s~LOG~${log}~g;\
+	     s~USER~${user}~g;\
+	     s~ROOT~${ROOTPWD}~g" $file > ${localStartup}/${file};
+done;
+
+addStartup;
+
+cd $ROOTPWD;