Skip to content

Commit 0b75986

Browse files
authored
removes sudo from postinst and postrm actions in the deb packages (#1320)
It is not guaranteed that sudo is present and is not really necessary as those actions are anyway run by a super user.
1 parent c5825ad commit 0b75986

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/release.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,12 @@ EOF
137137

138138
cat > $DEBIAN/postinst <<EOF
139139
#!/bin/sh
140-
sudo ldconfig
140+
ldconfig
141141
EOF
142142

143143
cat > $DEBIAN/postrm <<EOF
144144
#!/bin/sh
145-
sudo ldconfig
145+
ldconfig
146146
EOF
147147

148148
chmod a+x $DEBIAN/postinst
@@ -170,12 +170,12 @@ EOF
170170
cat > $DEBIAN/postinst <<EOF
171171
#!/bin/sh
172172
ln -sf $PREFIX/lib/libbap.so.$BAP_VERSION $PREFIX/lib/libbap.so
173-
sudo ldconfig
173+
ldconfig
174174
EOF
175175

176176
cat > $DEBIAN/postrm <<EOF
177177
#!/bin/sh
178-
sudo ldconfig
178+
ldconfig
179179
EOF
180180

181181
chmod a+x $DEBIAN/postinst

0 commit comments

Comments
 (0)