Skip to content

Commit c8f52de

Browse files
committed
set php7.0 repo before update
1 parent 2495bad commit c8f52de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install_one_instance/install_wordpress.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ useradd $wpcli;
1616
# Install sudo if it is not and run script
1717

1818
function start {
19-
apt-get update && apt-get -y install sudo && set_php7_sources
19+
sudo set_php7_sources && apt-get update && apt-get -y install
2020
}
2121

2222
# function: iferror
@@ -120,7 +120,7 @@ function install_WP {
120120
--admin_password=$wp_admin_password --admin_email=$wp_admin_email \
121121
--path=$wp_path \
122122
|| iferror "Wordpress not installed";
123-
123+
124124
chmod -R 775 $wp_path;
125125
nginx_create_site
126126
fi

0 commit comments

Comments
 (0)