source: lliurex-up/trunk/old/scripts/remove-guest-user @ 2636

Last change on this file since 2636 was 2636, checked in by kbut, 3 years ago

add old files

File size: 987 bytes
Line 
1#!/bin/sh
2# Installing packages (doing the real dist-upgrade)
3
4# gettext domain
5TEXTDOMAIN="lliurex-up"
6export TEXTDOMAIN
7
8COMMON_LIBRARY="/usr/share/lliurex-up/common-upgrade-vars.sh"
9if [  -r $COMMON_LIBRARY  ] ; then 
10        . $COMMON_LIBRARY
11fi
12
13#gettext messages
14INFO_MESSAGE="$(gettext "Remove guest user")"
15
16# Methods
17
18_Remove_the_guest_user()
19{
20        # Test if user is enabled
21        #rc=0
22        #grep -q "allow-guest=false" /etc/lightdm/lightdm.conf || rc=1
23        #if [ $rc -eq 1 ] ; then
24        #       echo "allow-guest=false" >> /etc/lightdm/lightdm.conf
25        #fi     
26        # For now this feature remains disabled until new news.
27        # LliureX GVA needs this package working.
28        echo " * [ LliureX Up ] : Remove guest user disabled"
29}
30
31_info()
32{
33        echo "$INFO_MESSAGE"
34}
35
36_migrate()
37{
38        _Remove_the_guest_user
39               
40}
41
42_usage()
43{
44        echo " * [ LliureX Up ] : # Unknown argument"
45
46}
47
48_die()
49{
50        echo " * [ LliureX Up ] : Error: $1"
51        exit 1
52}
53
54ACTION="$1"
55case "$ACTION" in
56        migrate)
57                _migrate
58        ;;
59        info)
60                _info
61        ;;
62        *)
63                _usage
64        ;;
65esac
66
Note: See TracBrowser for help on using the repository browser.