src/jdk.jpackage/linux/classes/jdk/jpackage/internal/resources/template.postinst
branchJDK-8200758-branch
changeset 57808 013547ae70ac
parent 57256 d7c27451f759
child 58301 e0efb29609bd
equal deleted inserted replaced
57807:4a15115716ea 57808:013547ae70ac
    23             echo Adding shortcut to the menu
    23             echo Adding shortcut to the menu
    24 ADD_LAUNCHERS_INSTALL
    24 ADD_LAUNCHERS_INSTALL
    25             xdg-desktop-menu install --novendor INSTALLATION_DIRECTORY/APPLICATION_FS_NAME/APPLICATION_LAUNCHER_FILENAME.desktop
    25             xdg-desktop-menu install --novendor INSTALLATION_DIRECTORY/APPLICATION_FS_NAME/APPLICATION_LAUNCHER_FILENAME.desktop
    26 FILE_ASSOCIATION_INSTALL
    26 FILE_ASSOCIATION_INSTALL
    27         fi
    27         fi
    28         if [ "SERVICE_HINT" = "true" ]; then
       
    29             echo Installing daemon
       
    30             cp INSTALLATION_DIRECTORY/APPLICATION_FS_NAME/APPLICATION_PACKAGE.init /etc/init.d/APPLICATION_PACKAGE
       
    31 
       
    32             if [ -x "/etc/init.d/APPLICATION_PACKAGE" ]; then
       
    33                 update-rc.d APPLICATION_PACKAGE defaults
       
    34 
       
    35                 if [ "START_ON_INSTALL" = "true" ]; then
       
    36                     if which invoke-rc.d >/dev/null 2>&1; then
       
    37                         invoke-rc.d APPLICATION_PACKAGE start
       
    38                     else
       
    39                         /etc/init.d/APPLICATION_PACKAGE start
       
    40                     fi
       
    41                 fi
       
    42 	        fi
       
    43 
       
    44         fi
       
    45     ;;
    28     ;;
    46 
    29 
    47     abort-upgrade|abort-remove|abort-deconfigure)
    30     abort-upgrade|abort-remove|abort-deconfigure)
    48     ;;
    31     ;;
    49 
    32 
    51         echo "postinst called with unknown argument \`$1'" >&2
    34         echo "postinst called with unknown argument \`$1'" >&2
    52         exit 1
    35         exit 1
    53     ;;
    36     ;;
    54 esac
    37 esac
    55 
    38 
    56 # dh_installdeb will replace this with shell code automatically
       
    57 # generated by other debhelper scripts.
       
    58 
       
    59 #DEBHELPER#
       
    60 
       
    61 exit 0
    39 exit 0