Skip to content

Commit

Permalink
create_packages.sh: use sudo when required
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoes committed Sep 25, 2018
1 parent bb666f4 commit dcdc948
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions create_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ library_files="\

echo "#!/bin/sh" > run_ldconfig

echo "/sbin/ldconfig" >> run_ldconfig
echo "sudo /sbin/ldconfig" >> run_ldconfig
if cat /etc/os-release | grep 'Ubuntu'
then
echo "Building DEB package"
fpm $common_args \
sudo fpm $common_args \
--output-type deb \
--depends libtinyxml2-dev \
--depends libcurl4-openssl-dev \
Expand All @@ -60,7 +60,7 @@ then
elif cat /etc/os-release | grep 'Fedora'
then
echo "Building RPM package"
fpm $common_args \
sudo fpm $common_args \
--output-type rpm \
--depends tinyxml2-devel \
--depends libcurl-devel \
Expand Down

0 comments on commit dcdc948

Please sign in to comment.