Managed Installs problem
Hello,
I have some trouble to deploy software with K1000. I try to deploy a software on Mac but it get stuck and then it fail.
I think that the problem come from a choice during the installation. Here is my script:
#!/bin/sh
#
# Install Script
#
IFS=$'\n'
INSTALLER_DIR=$(dirname "$0")
#
FILES="papers_*.dmg"
APPName="Papers.app"
install() {
for DMG_NAME in $INSTALLER_DIR"/"$FILES; do
#mount
MOUNT_POINT=$(hdiutil attach -nobrowse "$DMG_NAME" | egrep 'Volumes' | grep -o "/Volumes/.*")
[ $? != 0 ] && return 1
APP=$MOUNT_POINT"/"$APPName
ditto -rsrc $APP /Applications/$APPName
chown -R root:wheel /Applications/$APPName
chmod -R 777 /Applications/$APPName
hdiutil detach "$MOUNT_POINT" -quiet
done
}
install;
exit 0;
When I try to launch the script the following question will appear in the terminal:
"Agree Y/N ?"
If I want to continue I need to put Y. Is there a way to remove this choice ? Or maybe tell Kace to put Yes during the installation ?
I check the script but I can't find why he is asking me to put Yes in order to continue the installation.
Thanks in advance and sorry for my poor english I hope that you will be able to understand my problem.
I have some trouble to deploy software with K1000. I try to deploy a software on Mac but it get stuck and then it fail.
I think that the problem come from a choice during the installation. Here is my script:
#!/bin/sh
#
# Install Script
#
IFS=$'\n'
INSTALLER_DIR=$(dirname "$0")
#
FILES="papers_*.dmg"
APPName="Papers.app"
install() {
for DMG_NAME in $INSTALLER_DIR"/"$FILES; do
#mount
MOUNT_POINT=$(hdiutil attach -nobrowse "$DMG_NAME" | egrep 'Volumes' | grep -o "/Volumes/.*")
[ $? != 0 ] && return 1
APP=$MOUNT_POINT"/"$APPName
ditto -rsrc $APP /Applications/$APPName
chown -R root:wheel /Applications/$APPName
chmod -R 777 /Applications/$APPName
hdiutil detach "$MOUNT_POINT" -quiet
done
}
install;
exit 0;
When I try to launch the script the following question will appear in the terminal:
"Agree Y/N ?"
If I want to continue I need to put Y. Is there a way to remove this choice ? Or maybe tell Kace to put Yes during the installation ?
I check the script but I can't find why he is asking me to put Yes in order to continue the installation.
Thanks in advance and sorry for my poor english I hope that you will be able to understand my problem.
2 Comments
[ + ] Show comments
Answers (0)
Please log in to answer
Be the first to answer this question
So when i'm creating my managed installation I select the good software version from the catalog and I replace the default installation by this: sh ./install.sh - Blueshift 6 years ago
If your DMG from the vendor includes other files, then copy it from the DMG to a temporary folder on your machine and create a DMG that contains just the app and upload that. - chucksteel 6 years ago