You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pagespeed.apache.org by ju...@apache.org on 2017/12/30 04:41:35 UTC
[24/50] [abbrv] incubator-pagespeed-cpanel git commit: Delete old rpm
file if it already there
Delete old rpm file if it already there
Project: http://git-wip-us.apache.org/repos/asf/incubator-pagespeed-cpanel/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-pagespeed-cpanel/commit/46914713
Tree: http://git-wip-us.apache.org/repos/asf/incubator-pagespeed-cpanel/tree/46914713
Diff: http://git-wip-us.apache.org/repos/asf/incubator-pagespeed-cpanel/diff/46914713
Branch: refs/heads/master
Commit: 46914713bd8a33d28622c2f946b802e37f21ddf2
Parents: 19844fe
Author: Prajith <pr...@gmail.com>
Authored: Tue Oct 6 11:04:15 2015 +0530
Committer: Prajith <pr...@gmail.com>
Committed: Tue Oct 6 11:04:15 2015 +0530
----------------------------------------------------------------------
Easy/pagespeed/speed-install | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-pagespeed-cpanel/blob/46914713/Easy/pagespeed/speed-install
----------------------------------------------------------------------
diff --git a/Easy/pagespeed/speed-install b/Easy/pagespeed/speed-install
index 5f07ace..3f7a822 100755
--- a/Easy/pagespeed/speed-install
+++ b/Easy/pagespeed/speed-install
@@ -53,6 +53,10 @@ my $package = "mod-pagespeed-stable_current_" . "$arch" . '.rpm';
# https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_x86_64.rpm
# https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_amd64.deb
+# Delete old rpm file if exists.
+my $rm_cmd = "rm -rf $package";
+executeForkedTask("$rm_cmd") if -e $package;
+
#we are always using stable version
my $download_cmd = ("$download_bin https://dl-ssl.google.com/dl/linux/direct/$package");
executeForkedTask("$download_cmd");