add new samples and rename OPSI_INI_NAME to OPSI_INI_OPTION (ini typical naming)

This commit is contained in:
Mario Fetka
2013-03-08 08:06:41 +01:00
parent 9a19cdaacb
commit dd1364dced
47 changed files with 1637 additions and 5 deletions

View File

@@ -0,0 +1,122 @@
[Package]
version: 2
depends:
incremental: False
[Product]
type: localboot
id: opsi-template-with-admin
name: opsi template for installs with logged in admin
description: A opsi demo package
advice:
version: 4.0.2
priority: -20
licenseRequired: False
productClasses:
setupScript: setup.ins
uninstallScript: localsetup\uninstall.ins
updateScript:
alwaysScript:
onceScript:
customScript:
userLoginScript:
[ProductProperty]
type: bool
name: debug
description: should be false for production: switch off keyboard lock and increase loglevel
default: False
[ProductProperty]
type: bool
name: test-set-fatal
description: test only: if true script result is set to fatal
default: False
[Changelog]
opsi-template-with-admin (4.0.2-2) stable; urgency=low
* requires opsi-winst >= 4.11.3.3
* uses /productid switch at opsi-winst call
* code cleanup (use of synative instead of 64bit)
* property debug: switches loglevel and lock keyboard
* code cleanup
-- detlef oertel <d.oertel@uib.de> Thu, 19 Sep 2012 15:01:53 +0200
opsi-template-with-admin (4.0.2-1) stable; urgency=low
* requires opsi-winst >= 4.11.3
* using SidToName instead of psgetsid.exe
* priority set to -20
* first reboot is commented (;ExitWindows /ImmediateReboot). Uncomment it if you have problems with the autologon
-- detlef oertel <d.oertel@uib.de> Wed, 04 Jul 2012 15:01:53 +0200
opsi-template-with-admin (1.0-8) stable; urgency=low
* localdomain = "%PCNAME%"
-- Jan Schneider <j.schneider@uib.de> Wed, 4 May 2011 14:09:00 +0100
opsi-template-with-admin (1.0-7) stable; urgency=low
* localdomain = "." for nt6
-- Jan Schneider <j.schneider@uib.de> Tue, 29 Mar 2011 17:56:00 +0100
opsi-template-with-admin (1.0-6) stable; urgency=low
* postinst fix: /bin/bash
* preinst fix: no more case sensitiv for pcgetsid.exe
-- detlef oertel <d.oertel@uib.de> Tue, 30 Dec 2010 15:01:53 +0200
opsi-template-with-admin (1.0-5) testing; urgency=low
* added support for opsi 4.0 opsi-client-agent
* scripts renamed to setup.ins, local_setup.ins and uninstall.ins
-- detlef oertel <d.oertel@uib.de> Tue, 13 Jun 2010 15:01:53 +0200
opsi-template-with-admin (1.0-4) testing; urgency=low
* new (64 bit) functions of winst 4.10.3 used
-- detlef oertel <d.oertel@uib.de> Fri, 16 Apr 2010 15:01:53 +0200
opsi-template-with-admin (1.0-3) testing; urgency=low
* in [sub_fetch_SearchResult] changed ("$s$") to ('$s$')
-- detlef oertel <d.oertel@uib.de> Tue, 26 Jan 2010 15:01:53 +0200
opsi-template-with-admin (1.0-2) stable; urgency=low
* added support for 64 Bit
* code cleanup
* added psgetsid for international support
-- detlef oertel <d.oertel@uib.de> Mon, 14 Dec 2009 15:01:53 +0200
opsi-template-with-admin (1.0-1) stable; urgency=low
* initial package based on http://www.opsi.org/opsi_wiki/TemplateForInstallationsAsTemporaryLocalAdmin
-- detlef oertel <d.oertel@uib.de> Mon, 13 Nov 2009 15:01:53 +0200

View File

@@ -0,0 +1,26 @@
#! /bin/bash
#
# This script executes after unpacking files from that archive and registering the product at the server.
#
# The following environment variables can be used to obtain information about the current installation:
# 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
echo 'Restoring previous files...'
if [ -f $TMP_DIR/psgetsid.exe ]; then
mv $TMP_DIR/psgetsid.exe $CLIENT_DATA_DIR/ || exit 1
fi
echo 'get files if not present'
if [ ! -f "$CLIENT_DATA_DIR/psgetsid.exe" ]; then
cd $CLIENT_DATA_DIR
echo 'try to get zip'
wget http://download.sysinternals.com/Files/PsTools.zip
echo 'unzip'
unzip -o PsTools.zip
fi
echo "Removing temporary files..."
rm -rf $TMP_DIR

View File

@@ -0,0 +1,28 @@
#! /bin/bash
#
# preinst script for softprod
# This script executes before that package will be unpacked from its archive file.
#
# The following environment variables can be used to obtain information about the current installation:
# 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 files..."
if [ -f $CLIENT_DATA_DIR/[pP][sS][gG][eE][tT][sS][iI][dD].[eE][xX][eE] ]; then
mv $CLIENT_DATA_DIR/[pP][sS][gG][eE][tT][sS][iI][dD].[eE][xX][eE] $TMP_DIR/psgetsid.exe || exit 1
fi
fi
exit 0