Add new 32bit templates
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[Package]
|
||||
version: 2
|
||||
version: 1
|
||||
depends:
|
||||
incremental: False
|
||||
|
||||
@@ -9,17 +9,56 @@ id: opsi-template
|
||||
name: opsi template product
|
||||
description: A template for opsi products
|
||||
advice:
|
||||
version: 4.0.2
|
||||
version: 4.0.6
|
||||
priority: 0
|
||||
licenseRequired: true
|
||||
licenseRequired: False
|
||||
productClasses:
|
||||
setupScript: setup32.ins
|
||||
uninstallScript: uninstall32.ins
|
||||
setupScript: setup32.opsiscript
|
||||
uninstallScript: uninstall32.opsiscript
|
||||
updateScript:
|
||||
alwaysScript:
|
||||
onceScript:
|
||||
customScript:
|
||||
userLoginScript:
|
||||
userLoginScript:
|
||||
|
||||
[ProductProperty]
|
||||
type: unicode
|
||||
name: install_architecture
|
||||
multivalue: False
|
||||
editable: False
|
||||
description: which architecture (32/64 bit) has to be installed
|
||||
values: ["32 only", "64 only", "both", "system specific"]
|
||||
default: ["system specific"]
|
||||
|
||||
[ProductProperty]
|
||||
type: bool
|
||||
name: FileTypeAssociation
|
||||
description: File Type Associations on/off
|
||||
default: True
|
||||
|
||||
[ProductProperty]
|
||||
type: bool
|
||||
name: DesktopLink
|
||||
description: Show Desktop Link on/off
|
||||
default: False
|
||||
|
||||
[ProductProperty]
|
||||
type: unicode
|
||||
name: custom-post-install
|
||||
multivalue: False
|
||||
editable: True
|
||||
description: Define filename for include script in custom directory after installation
|
||||
values: ["none"]
|
||||
default: ["none"]
|
||||
|
||||
[ProductProperty]
|
||||
type: unicode
|
||||
name: custom-post-uninstall
|
||||
multivalue: False
|
||||
editable: True
|
||||
description: Define filename for include script in custom directory after uninstallation
|
||||
values: ["none"]
|
||||
default: ["none"]
|
||||
|
||||
[ProductDependency]
|
||||
action: setup
|
||||
@@ -27,4 +66,9 @@ requiredProduct: sereby.aio
|
||||
requiredStatus: installed
|
||||
requirementType: before
|
||||
|
||||
[ProductDependency]
|
||||
action: setup
|
||||
requiredProduct: danysys.sfta
|
||||
requiredStatus: installed
|
||||
requirementType: before
|
||||
|
||||
|
||||
@@ -7,3 +7,19 @@
|
||||
# PRODUCT_ID: id of the current product
|
||||
# CLIENT_DATA_DIR: directory which contains the installed client data
|
||||
#
|
||||
|
||||
TMP_DIR=${CLIENT_DATA_DIR}/../${PRODUCT_ID}.tmp
|
||||
|
||||
if [ -d $TMP_DIR ]; then
|
||||
echo 'Restoring previous directories...'
|
||||
|
||||
echo 'Restoring previous custom dir...'
|
||||
if [ -d $TMP_DIR/custom ]; then
|
||||
test -e $CLIENT_DATA_DIR/custom && rm -rf $CLIENT_DATA_DIR/custom
|
||||
echo " moving $TMP_DIR/custom to $CLIENT_DATA_DIR/"
|
||||
mv $TMP_DIR/custom $CLIENT_DATA_DIR/ || exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Removing temporary files..."
|
||||
rm -rf $TMP_DIR
|
||||
|
||||
@@ -7,3 +7,27 @@
|
||||
# PRODUCT_ID: id of the current product
|
||||
# CLIENT_DATA_DIR: directory where client data will be installed
|
||||
#
|
||||
|
||||
TMP_DIR=${CLIENT_DATA_DIR}/../${PRODUCT_ID}.tmp
|
||||
|
||||
if [ -d $TMP_DIR ]; then
|
||||
echo "Temporary directory $TMP_DIR already exist, aborting!" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
[ ! -d $CLIENT_DATA_DIR ] && mkdir $CLIENT_DATA_DIR
|
||||
mkdir $TMP_DIR
|
||||
|
||||
if [ -d $CLIENT_DATA_DIR ]; then
|
||||
echo "Saving previous directories..."
|
||||
for dirname in custom ; do
|
||||
for path in $CLIENT_DATA_DIR/$dirname; do
|
||||
if [ -e $path ]; then
|
||||
echo " moving $path to $TMP_DIR"
|
||||
mv $path $TMP_DIR/ || exit 1
|
||||
fi
|
||||
done
|
||||
done
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user