Skip to content

Commit

Permalink
fix posinst apt update position
Browse files Browse the repository at this point in the history
  • Loading branch information
cerebrux committed Nov 10, 2017
1 parent 2da1efc commit 056a931
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
Author : Salih Emin
Email : salihemin (at) about.me
Date : 10-11-2017
Version: 4.2.2
Version: 4.2.3
System : Ubuntu or Debian derivatives (Not tested every flavor)
WebSite: http://utappia.org

Expand Down
13 changes: 9 additions & 4 deletions debian-packaging/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,17 @@ deb http://ppa.launchpad.net/utappia/stable/ubuntu xenial main
deb-src http://ppa.launchpad.net/utappia/stable/ubuntu xenial main
EOT
echo ""
echo "Refreshing package list..."
echo ""
apt update
else
echo ""
echo "Adding Utappia repository"
add-apt-repository -y ppa:utappia/stable
echo ""
echo "Refreshing package list..."
echo ""
apt update
fi
fi
echo ""
echo ""
echo "Refreshing package list..."
apt update
6 changes: 3 additions & 3 deletions ucaresystem-core
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ set -e
# Author : Salih Emin
# WebSite: http://utappia.org
# Email : salihemin-(at)-about.me
# Date : 6-11-2017 (first release 19-02-2009)
# Version: 4.2.1
# Date : 10-11-2017 (first release 19-02-2009)
# Version: 4.2.3
# System : Debian Linux and Ubuntu Linux
# Description:
#This simple script will automatically refresh your package list, download and install
Expand All @@ -23,7 +23,7 @@ set -e
#Variables
DIST_CODENAME=$(lsb_release --codename | cut -f2)
DATE=(date +%F_%T)
UCARE_VERSION=(4.2.1)
UCARE_VERSION=(4.2.3)

# Checking if the user has run the script with "sudo" or not
if [[ $EUID -ne 0 ]] ; then
Expand Down

0 comments on commit 056a931

Please sign in to comment.