Skip to content

Commit 7ea6041

Browse files
author
Kristan Kenney
authored
Merge pull request hestiacp#422 from Lupul/webui-0626
Cleanup/Webui 0626-02
2 parents 19e6284 + 55340e7 commit 7ea6041

File tree

5 files changed

+17
-8
lines changed

5 files changed

+17
-8
lines changed

bin/v-update-sys-hestia-git

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ download_file() {
5353
BUILD_DIR='/tmp/hestiacp-src/'
5454
DEB_DIR="$BUILD_DIR/debs/"
5555
INSTALL_DIR='/usr/local/hestia'
56+
ARCHIVE_DIR="${BUILD_DIR}/archive/"
5657

5758
# Set command variables
5859
branch=$1
@@ -71,6 +72,7 @@ PHP_V='7.3.4'
7172
# Create build directories
7273
rm -rf $BUILD_DIR
7374
mkdir -p $DEB_DIR
75+
mkdir -p $ARCHIVE_DIR
7476

7577
# Set package dependencies for compiling
7678
SOFTWARE='build-essential libxml2-dev libz-dev libcurl4-gnutls-dev unzip openssl libssl-dev pkg-config'
@@ -126,13 +128,15 @@ HESTIA_B='true'
126128
GIT_REP='https://raw.githubusercontent.com/hestiacp/hestiacp/'$branch'/src/deb'
127129

128130
# Generate Links for sourcecode
129-
HESTIA_ARCHIVE_LINK='https://github.com/hestiacp/hestiacp/archive/'$branch'.zip'
131+
HESTIA_ARCHIVE_LINK='https://github.com/hestiacp/hestiacp/archive/'$branch'.tar.gz'
130132
NGINX='https://nginx.org/download/nginx-'$NGINX_V'.tar.gz'
131133
OPENSSL='https://www.openssl.org/source/openssl-'$OPENSSL_V'.tar.gz'
132134
PCRE='https://ftp.pcre.org/pub/pcre/pcre-'$PCRE_V'.tar.gz'
133135
ZLIB='https://www.zlib.net/zlib-'$ZLIB_V'.tar.gz'
134136
PHP='http://de2.php.net/distributions/php-'$PHP_V'.tar.gz'
135137

138+
# Forward slashes in branchname are replaced with dashes to match foldername in github archive.
139+
branch=$(echo "$branch" |sed 's/\//-/g');
136140

137141
#################################################################################
138142
#
@@ -327,9 +331,7 @@ if [ "$HESTIA_B" = true ] ; then
327331
mkdir $BUILD_DIR/hestia_$HESTIA_V
328332

329333
# Download and unpack source files
330-
download_file $HESTIA_ARCHIVE_LINK
331-
unzip -q $branch.zip
332-
rm $branch.zip
334+
download_file $HESTIA_ARCHIVE_LINK '-' 'fresh' | tar xz
333335

334336
# Prepare Deb Package Folder Structure
335337
cd hestia_$HESTIA_V/
@@ -345,7 +347,7 @@ if [ "$HESTIA_B" = true ] ; then
345347
chmod +x postinst
346348

347349
# Move needed directories
348-
cd ../../hestiacp-$branch
350+
cd $BUILD_DIR/hestiacp-$branch
349351
mv bin func install web ../hestia_$HESTIA_V/usr/local/hestia/
350352

351353
# Set permission

src/hst_autocompile.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ PCRE='https://ftp.pcre.org/pub/pcre/pcre-'$PCRE_V'.tar.gz'
182182
ZLIB='https://www.zlib.net/zlib-'$ZLIB_V'.tar.gz'
183183
PHP='http://de2.php.net/distributions/php-'$PHP_V'.tar.gz'
184184

185+
# Forward slashes in branchname are replaced with dashes to match foldername in github archive.
186+
branch=$(echo "$branch" |sed 's/\//-/g');
185187

186188
#################################################################################
187189
#

web/css/styles.min.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ a {
12031203
}
12041204

12051205
div.l-content > div.l-separator:nth-of-type(2) {
1206-
margin-top: 178px;
1206+
margin-top: 180px;
12071207
width: 100%;
12081208
position: fixed;
12091209
z-index: 120;
@@ -3404,6 +3404,9 @@ form#vstobjects.suspended {
34043404
.shortcuts .close:active {
34053405
background-color: #55c9c0;
34063406
}
3407+
.shortcuts .close .fas {
3408+
font-size: 1.3rem;
3409+
}
34073410
.shortcuts ul {
34083411
list-style-type: none;
34093412
padding: 30px 20px;

web/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ hover_menu = function() {
10231023
nav_context.css({'margin-top': '101px'});
10241024
nav_a.find('ul').css({'visibility': 'hidden'});
10251025
nav_main.css({'padding-top': '27px'});
1026-
sep_2.css({'box-shadow':'0 2px 6px 0 rgba(200, 200, 200, 0.35)'});
1026+
sep_2.css({'box-shadow':'0 5px 6px 0 rgba(200, 200, 200, 0.35)'});
10271027
}
10281028

10291029
if(st == 0){

web/templates/footer.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
<div class="shortcuts animated fadeIn" style="display:none">
88
<div class="header">
99
<div class="title"><?=__('Shortcuts')?></div>
10-
<div class="close"></div>
10+
<div class="close text-center">
11+
<i class="fas fa-times"></i>
12+
</div>
1113

1214
</div>
1315
<ul>

0 commit comments

Comments
 (0)