Skip to content

Commit de4b5a7

Browse files
author
gau1991
committed
Fixed sudo dependencies
1 parent 552a608 commit de4b5a7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

bin/install

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function ee_lib_error()
7070
function ee_lib_package_check()
7171
{
7272
local ee_package
73-
73+
7474
for ee_package in $@;do
7575
dpkg --get-selections | grep -v deinstall | grep $ee_package &>> $EE_INSTALL_LOG
7676

@@ -87,7 +87,7 @@ function ee_lib_package_check()
8787
if [ ! -d $EE_LOG_DIR ]; then
8888
ee_lib_echo "Creating EasyEngine (ee) log directory, please wait..."
8989
mkdir -p $EE_LOG_DIR || ee_lib_error "Unable to create log directory $EE_LOG_DIR, exit status = " $?
90-
90+
9191
# Create EasyEngine log files
9292
touch /var/log/easyengine/{ee.log,install.log,update.log,error.log} \
9393
|| ee_lib_error "Unable to create EasyEngine log files in $EE_LOG_DIR, exit status = " $?
@@ -105,9 +105,9 @@ elif [ "$EE_LINUX_DISTRO" == "Debian" ]; then
105105
ee_lib_package_check graphviz python-software-properties
106106
fi
107107

108-
if [ ! -x /usr/bin/tee ] || [ ! -x /bin/ed ] || [ ! -x /usr/bin/bc ] || [ ! -x /usr/bin/wget ] || [ ! -x /usr/bin/curl ] || [ ! -x /bin/tar ] || [ ! -x /usr/bin/git ] || [ -n "$EE_PACKAGE_NAME" ]; then
108+
if [ ! -x /usr/bin/tee ] || [ ! -x /bin/ed ] || [ ! -x /usr/bin/bc ] || [ ! -x /usr/bin/wget ] || [ ! -x /usr/bin/curl ] || [ ! -x /bin/tar ] || [ ! -x /usr/bin/git ] || [ ! -x /usr/bin/sudo ] || [ -n "$EE_PACKAGE_NAME" ]; then
109109
ee_lib_echo "Installing required packages, please wait..." | tee -ai $EE_INSTALL_LOG
110-
apt-get -y install coreutils ed bc wget curl tar git-core $EE_PACKAGE_NAME | tee -ai $EE_INSTALL_LOG\
110+
apt-get -y install coreutils ed bc wget curl tar git-core sudo $EE_PACKAGE_NAME | tee -ai $EE_INSTALL_LOG\
111111
|| ee_lib_error "Unable to install required packages, exit status = " $?
112112
fi
113113

@@ -130,7 +130,7 @@ else
130130
fi
131131
fi
132132

133-
# Remove old version of EasyEngine (ee)
133+
# Remove old version of EasyEngine (ee)
134134
rm -rf /tmp/easyengine &>> /dev/null
135135

136136
# Let's clone EasyEngine (ee)

src/modules/stack/install/ee_mod_repo_mysql.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ function ee_mod_repo_mysql()
99

1010
# Fetch and install Percona GnuPG key
1111
gpg --keyserver hkp://keys.gnupg.net --recv-keys 1C4CBDCDCD2EFD2A &>> $EE_COMMAND_LOG && \
12-
gpg -a --export CD2EFD2A | sudo apt-key add - &>> $EE_COMMAND_LOG \
12+
gpg -a --export CD2EFD2A | apt-key add - &>> $EE_COMMAND_LOG \
1313
|| ee_lib_error "Unable to add Percona GnuPG key, exit status = " $?
1414
}

0 commit comments

Comments
 (0)