mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-17 21:03:20 +00:00
IGNORE_APP_STORE_APPS
This commit is contained in:
@@ -175,13 +175,12 @@ getAppVersion() {
|
|||||||
printlog "found app at $installedAppPath, version $appversion"
|
printlog "found app at $installedAppPath, version $appversion"
|
||||||
# Is current app from App Store
|
# Is current app from App Store
|
||||||
if [[ -d "$installedAppPath"/Contents/_MASReceipt ]];then
|
if [[ -d "$installedAppPath"/Contents/_MASReceipt ]];then
|
||||||
printlog "Installed $appName is from App Store, use INSTALL=force to replace."
|
printlog "Installed $appName is from App Store, use “IGNORE_APP_STORE_APPS=yes” to replace."
|
||||||
# INSTALL="force"
|
if [[ $IGNORE_APP_STORE_APPS == "yes" ]]; then
|
||||||
# Maybe we should exit instead
|
printlog "Replacing App Store apps, no matter the version"
|
||||||
if [[ $INSTALL == "force" ]]; then
|
appversion=0
|
||||||
printlog "Force is used so continuing"
|
|
||||||
else
|
else
|
||||||
cleanupAndExit 1 "App previously installed from App Store"
|
cleanupAndExit 1 "App previously installed from App Store, and we respect that"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -68,7 +68,20 @@ LOGO=appstore
|
|||||||
# - mosyleb Mosyle Business
|
# - mosyleb Mosyle Business
|
||||||
# - mosylem Mosyle Manager (Education)
|
# - mosylem Mosyle Manager (Education)
|
||||||
# - addigy Addigy
|
# - addigy Addigy
|
||||||
# path can also be set in the command call, and if file exists, it will be used, like 'LOGO="/System/Applications/App\ Store.app/Contents/Resources/AppIcon.icns"' (spaces are escaped).
|
# path can also be set in the command call, and if file exists, it will be used.
|
||||||
|
# Like 'LOGO="/System/Applications/App\ Store.app/Contents/Resources/AppIcon.icns"'
|
||||||
|
# (spaces have to be escaped).
|
||||||
|
|
||||||
|
|
||||||
|
# App Store apps handling
|
||||||
|
IGNORE_APP_STORE_APPS=no
|
||||||
|
# options:
|
||||||
|
# - no If installed app is from App Store (which include VPP installed apps)
|
||||||
|
# it will not be touched, no matter it's version (default)
|
||||||
|
# - yes Replace App Store (and VPP) version of app and handle future
|
||||||
|
# updates using Installomator, even if latest version.
|
||||||
|
# Shouldn’t give any problems for the user in most cases.
|
||||||
|
# Known bad example: Slack will loose all settings.
|
||||||
|
|
||||||
|
|
||||||
# install behavior
|
# install behavior
|
||||||
|
|||||||
Reference in New Issue
Block a user