Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / usr / lib / tasksel / tests / | server ip : 172.67.156.115 your ip : 172.69.130.140 H O M E |
Filename | /usr/lib/tasksel/tests/new-install |
Size | 607 |
Permission | rwxr-xr-x |
Owner | root : root |
Create time | 27-Apr-2025 09:52 |
Last modified | 04-Apr-2014 20:58 |
Last accessed | 27-Apr-2025 09:54 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
#!/bin/sh
#
# Controls behavior for a task on new install or not.
#
# To enable this test insert your tasks stanza a keyword like:
#
# Test-new-install: mark skip
#
# This will cause the task to be marked for install on new install, and
# hidden otherwise.
if [ "$NEW_INSTALL" ]; then
var=$2
else
var=$3
fi
case "$var" in
install)
exit 0 # do not display, but do install task
;;
skip)
exit 1 # do not display task
;;
mark)
exit 2 # display task, marked for installation
;;
show)
exit 3 # display task, not marked for installation
;;
*)
exit 1 # unknown value, skip the task
;;
esac
#
# Controls behavior for a task on new install or not.
#
# To enable this test insert your tasks stanza a keyword like:
#
# Test-new-install: mark skip
#
# This will cause the task to be marked for install on new install, and
# hidden otherwise.
if [ "$NEW_INSTALL" ]; then
var=$2
else
var=$3
fi
case "$var" in
install)
exit 0 # do not display, but do install task
;;
skip)
exit 1 # do not display task
;;
mark)
exit 2 # display task, marked for installation
;;
show)
exit 3 # display task, not marked for installation
;;
*)
exit 1 # unknown value, skip the task
;;
esac