wok-current rev 417

get-skype, get-flash-plugin: check we are root
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 12 19:54:03 2008 +0000 (2008-03-12)
parents 5a403db80cf8
children 3e4902324078
files get-flash-plugin/stuff/get-flash-plugin get-skype/stuff/get-skype
line diff
     1.1 --- a/get-flash-plugin/stuff/get-flash-plugin	Wed Mar 12 19:24:20 2008 +0000
     1.2 +++ b/get-flash-plugin/stuff/get-flash-plugin	Wed Mar 12 19:54:03 2008 +0000
     1.3 @@ -1,5 +1,11 @@
     1.4  #!/bin/sh -e
     1.5  
     1.6 +if test $(id -u) != 0 ; then
     1.7 +	echo -e "\nYou must be root to run `basename $0`."
     1.8 +	echo -e "Please type 'su' and root password to become super-user.\n"
     1.9 +	exit 0
    1.10 +fi
    1.11 +
    1.12  DIR=install_flash_player_9_linux
    1.13  TARBALL=$DIR.tar.gz
    1.14  WEB_SITE="http://www.adobe.com/products/flash/"
     2.1 --- a/get-skype/stuff/get-skype	Wed Mar 12 19:24:20 2008 +0000
     2.2 +++ b/get-skype/stuff/get-skype	Wed Mar 12 19:54:03 2008 +0000
     2.3 @@ -1,5 +1,11 @@
     2.4  #!/bin/sh -e
     2.5  
     2.6 +if test $(id -u) != 0 ; then
     2.7 +	echo -e "\nYou must be root to run `basename $0`."
     2.8 +	echo -e "Please type 'su' and root password to become super-user.\n"
     2.9 +	exit 0
    2.10 +fi
    2.11 +
    2.12  # Download tarball
    2.13  WEB_SITE="http://www.skype.com/"
    2.14  wget ${WEB_SITE}go/getskype-linux-static
    2.15 @@ -18,6 +24,7 @@
    2.16  mv skype /usr/bin
    2.17  mv skype.conf /etc
    2.18  mv skype.desktop /usr/share/applications
    2.19 +ln /usr/share/skype/icons/*16.png /usr/share/pixmaps/skype.png
    2.20  
    2.21  # Create pseudo package
    2.22  mkdir -p fs/usr/share/skype