Skip to content

Commit da096fa

Browse files
committed
Check if curl symlink exists and add copyright to deb files.
1 parent 75ee8a8 commit da096fa

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/hst_autocompile.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ timestamp() {
3535
apt-get install -y $SOFTWARE
3636

3737
# Fix for Debian PHP Envroiment
38-
cd /usr/local/include
39-
ln -s /usr/include/x86_64-linux-gnu/curl curl
38+
if [ ! -f /usr/local/include/curl ]; then
39+
ln -s /usr/include/x86_64-linux-gnu/curl /usr/local/include/curl
40+
fi
4041

4142
# Set packages to compile
4243
for arg; do
@@ -118,6 +119,7 @@ if [ "$NGINX_B" = true ] ; then
118119
# Download control, postinst and postrm files
119120
cd DEBIAN
120121
wget $GIT_REP/nginx/control
122+
wget $GIT_REP/nginx/copyright
121123
wget $GIT_REP/nginx/postinst
122124
wget $GIT_REP/nginx/postrm
123125

@@ -199,6 +201,7 @@ if [ "$PHP_B" = true ] ; then
199201
# Download control, postinst and postrm files
200202
cd DEBIAN
201203
wget $GIT_REP/php/control
204+
wget $GIT_REP/php/copyright
202205

203206
# Move php directory
204207
cd ..
@@ -249,6 +252,7 @@ if [ "$HESTIA_B" = true ] ; then
249252
# Download control, postinst and postrm files
250253
cd DEBIAN
251254
wget $GIT_REP/hestia/control
255+
wget $GIT_REP/hestia/copyright
252256
wget $GIT_REP/hestia/postinst
253257

254258
# Set permission

0 commit comments

Comments
 (0)