Browse Source

Fixed case specific signing and modes

Jaywalker 6 years ago
parent
commit
16db5efaf3
1 changed files with 8 additions and 4 deletions
  1. 8 4
      the_memo.sh

+ 8 - 4
the_memo.sh

@@ -3579,16 +3579,20 @@ rm -rf "$SKEL_PREFIX/$ROOT_PREFIX/bin/ntbtls-config"
 # Still need to do this for debs, but oh well. We just won't use the yet :P
 sudo chown -R root:wheel "$SKEL_PREFIX/$ROOT_PREFIX"
 sudo chown root:admin "$SKEL_PREFIX/private"
-#sudo chown root:admin "$SKEL_PREFIX/Applications"
-#sudo chown -R root:wheel "$SKEL_PREFIX/Library"
 sudo chown -R root:wheel "$SKEL_PREFIX/private/etc"
 sudo chown -R root:wheel "$SKEL_PREFIX/private/var"
 #sudo chmod 6755 "$SKEL_PREFIX/usr/bin/nitoHelper"
 #sudo chmod 6755 "$SKEL_PREFIX/usr/bin/nitoUpdate"
 rm -rf skel.tgz
 cd "$SKEL_PREFIX"
-#sudo tar cpz -P --exclude .DS_Store -f ../skel.tgz Applications usr private Library
-sudo tar cpz -P --exclude .DS_Store -f ../skel.tgz usr private
+if [ "$NITOTV" == "true" ]; then
+	sudo chown root:admin "$SKEL_PREFIX/Applications"
+	sudo chown -R root:wheel "$SKEL_PREFIX/Library"
+	sudo chmod 6755 "$SKEL_PREFIX/usr/libexec/goNito"
+	sudo tar cpz -P --exclude .DS_Store -f ../skel.tgz Applications usr private Library
+else
+	sudo tar cpz -P --exclude .DS_Store -f ../skel.tgz usr private
+fi
 
 cd "$BUILD_ROOT"