Skip to content

Commit

Permalink
Removing sudo.
Browse files Browse the repository at this point in the history
The whole script has to be run as root anyway.

Signed-off-by: Mi Tar <[email protected]>
  • Loading branch information
mitar committed Jun 6, 2017
1 parent 02b7d49 commit 6a7ec7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions linux/installer/common/psw/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ elif [ -d /etc/init/ ]; then
chmod 0644 $AESMD_DEST
rm -f $AESMD_TEMP
rm -f $AESM_PATH/aesmd.service
sudo /sbin/initctl reload-configuration
/sbin/initctl reload-configuration
retval=$?
else
echo " failed."
Expand All @@ -115,7 +115,7 @@ if test \$(id -u) -ne 0; then
fi
# Killing AESM service
sudo /usr/sbin/service aesmd stop
/usr/sbin/service aesmd stop
$DISABLE_AESMD
# Removing AESM configuration files
rm -f $AESMD_DEST
Expand Down Expand Up @@ -149,7 +149,7 @@ rm $AESM_PATH/cse_provision_tool
if [ -d /run/systemd/system ]; then
systemctl start aesmd
elif [ -d /etc/init/ ]; then
sudo /sbin/initctl start aesmd
/sbin/initctl start aesmd
fi

echo -e "\nuninstall.sh script generated in $PSW_DST_PATH\n"
Expand Down

0 comments on commit 6a7ec7a

Please sign in to comment.