Skip to content

Commit d3c67ca

Browse files
authored
Merge pull request hestiacp#540 from hestiacp/master
Push master to demo mode branch.
2 parents 0faa709 + f06bcdf commit d3c67ca

File tree

189 files changed

+895
-589
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

189 files changed

+895
-589
lines changed

CHANGELOG.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
## [CURRENT] - Development
5+
### Features
6+
-
7+
8+
### Bugfixes
9+
-
10+
11+
## [1.0.4] - 2019-07-09 - Hotfix
12+
### Bugfixes
13+
- Delay start of services to prevent restart liimit
14+
15+
## [1.0.3] - 2019-07-09 - Hotfix
16+
### Bugfixes
17+
- Fix Let's Encrypt Mail SSL permission issue
18+
19+
## [1.0.1] - 2019-06-25
20+
### Features
21+
- Improved support for Let's Encrypt certificate generation
22+
- Addition of Let's Encrypt support for Control Panel – see v-add-letsencrypt-host
23+
- Enabled use of per-domain SSL certificates for inbound and outbound mail services
24+
- Consolidated template structure, removing over 50% duplicate code
25+
- Re-organized file system structure for domain configuration files
26+
- Added the ability to change release branches through the user interface and command line
27+
- Added the ability to update using Git from the command line - see v-sys-update-hestia-git
28+
- Implemented support for SFTP chroot jails
29+
- A newly redesigned user interface which features:
30+
- A softer color palette which better matches the Hestia Control Panel logo colors.
31+
- A consolidated overview of domains and other information
32+
- Improved navigation paths to make things easier to find
33+
- Improved compatibility when viewing the Control Panel interface from a mobile device
34+
- Improved handling of mail domain DNS zone values
35+
- Enabled OCSP stapling on SSL-enabled web domains
36+
- Enabled support for HTTP Strict Transport Security on SSL-enabled web domains in the system backend– see v-change-web-domain-hsts
37+
- Improved logging and console output during new installations and upgrades
38+
39+
### Bugfixes
40+
- Fixed issues with HTTP-to-HTTPS redirecton
41+
- Fixed an issue where another website would load if browsing to a non-SSL enabled domaing using HTTPS.
42+
43+
## [1.0.0-190618] - 2019-06-25
44+
### Features
45+
-
46+
47+
### Bugfixes
48+
-
49+
50+
## [0.9.8-28] - 2019-05-16
51+
### Features
52+
- Implement force ssl function for web domains
53+
54+
### Bugfixes
55+
-
56+
57+
58+
[CURRENT]: https://github.com/hestiacp/hestiacp
59+
[1.0.4]: https://github.com/hestiacp/hestiacp/releases/tag/1.0.4
60+
[1.0.3]: https://github.com/hestiacp/hestiacp/releases/tag/1.0.3
61+
[1.0.1]: https://github.com/hestiacp/hestiacp/releases/tag/1.0.1
62+
[1.0.0-190618]: https://github.com/hestiacp/hestiacp/releases/tag/1.0.0-190618
63+
[0.9.8-28]: https://github.com/hestiacp/hestiacp/releases/tag/0.9.8-28

CONTRIBUTING.md

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,40 @@
11
How to Contribute
22
==================================================
33

4-
Do you want to contribute to the Hestia Control Panel project? The easiest way to get started is to [submit an issue report](https://github.com/hestiacp/hestia/issues) if you come across a bug or issue. If you're a developer, please feel free to submit a patch/pull request with a fix.
4+
Do you want to contribute to the Hestia Control Panel project? The easiest way to get started is to [submit an issue report](https://github.com/hestiacp/hestia/issues) if you come across a bug or issue. If you are a developer, please feel free to submit your code via pull request for review.
55

6-
**We appreciate all contributions to our project; it is with the help of the open-source community that we are able to build a product that meets users needs.**
6+
**We appreciate and welcome all contributions to our project; it is with the help of the open-source community that we are able to build a product that meets our users needs.**
77

88
Code Contributions & Pull Requests - Guidelines
99
-----------------------
1010

1111
**All pull requests must include:**
12-
1. A brief but descriptive title, such as **Fixed typo in php.ini** or **Updated rebuild_mail_conf function in rebuild.sh**.
12+
1. A brief but descriptive title, such as **Fixed syntax error in php.ini** or **Updated rebuild_mail_conf function in rebuild.sh**.
1313
2. A detailed description of the changes that you've made.
1414
1. Example: "Apache subdomain configuration was incorrect, modified variables in templates to point to the correct files."
1515
3. Only commits which are related to the pull request or issue itself.
1616

1717
### Code formatting and comments:
18-
We ask that you try to follow existing naming schemes and coding conventions as much as possible, and that you please add brief but descriptive comments in your source code to aid other developers in debugging and understanding your code in the future.
18+
We ask that you please try to follow existing naming schemes and coding conventions as much as possible, and that you add brief but descriptive comments in your source code to aid other developers in debugging and understanding your code in the future.
1919

2020
### Squashing commits for smaller changes:
21-
When submitting a pull request with multiple smaller commits which are related to the same issue (or file), we ask that you please **squash your commits** in order to keep the project's commit history clean and easy to follow for other developers.
22-
21+
When submitting a pull request with multiple smaller commits which are related to the same issue (or file), we ask that you please **squash your commits** in order to keep the project's commit history clean and easy to follow for other developers. For example, if you are submitting a fix for two files which contain the same code change, merge those changes into one commit before submitting your request.
2322

2423
### Working with branches:
25-
Development for this project takes place in branches to effectively develop, manage, and test manage new features and code changes, ensuring that that each release meets high quality standards. Our primary branches are as follows:
24+
Development for this project takes place in branches to effectively develop, manage, and test new features and code changes, helping to ensure that each release meets high quality standards. Our primary branches are as follows:
2625

2726
* **master**: Active development code for the the next version of Hestia Control Panel.
28-
* **prerelease**: The next release of Hestia Control Panel which is undergoing testing and quality refinement.
2927
* **release**: The latest stable release code - installation packages generally align with this branch.
3028

31-
We ask that you create a new branch for your work based on **master** or **prerelease**, depending on the code you are contributing. By doing this, you can submit a pull request with only the necessary commits. Please follow the below naming conventions for your work and submit a pull request when it has been completed. Once reviewed and approved, our development team will merge your code into the primary development branch.
29+
We ask that you create a new branch for your work based on **master**, this will allow you to submit only the necessary commits/changes that you've made. We generally adhere to the below naming convention for internal branches; you're welcome to use your own naming conventions so long as your commits follow the guidelines mentioned above.
3230

33-
* **feature/area/name-of-feature**: New features
34-
* **hotfix/000**: Critical security or bug fixes
35-
* **bugfix/000**: Non-critical bug fixes
31+
* **feature-name**: New features
32+
* **bugfix-000**: Bug fixes
3633

37-
**Note**: Replace **area** with Web, DNS, Mail, etc. Replace **000** with the GitHub Issue ID if available, or use a short but descriptive name.
34+
**Note**: Replace **000** with the GitHub Issue ID if available, or use a short but descriptive name.
3835

3936
### Feature freeze:
40-
The general flow of our development process is that new features or work begin in a new branch derived from **master**. Once the work has been completed and reviewed, it is then submitted via Pull Request for further review and inclusion into the main code base. Once a release has reached a point where slated new features have been incorporated and the build has gone through testing and validation, it will then enter a "feature freeze" state where only fixes to the existing functionality will be merged for inclusion and be pushed to the **prerelease** branch. Once any remaining known issues have been resolved and the build is considered stable, the code is then pushed to **release** and the cycle starts all over again.
41-
42-
**master** -> **prerelease** -> **release**
37+
Once development has reached a point where all planned new features have been incorporated, the **master** branch will then enter a "feature freeze" period where only fixes to the existing functionality will be added or merged for inclusion. Once any known issues have been resolved and the build has passed internal validation and testing procedures, it will then be pushed to **release** and tagged with it's respective version number and made available through our APT repositories.
4338

4439
**Please ensure that all pull requests meet the guidelines listed above; those that do not will be rejected and sent back for review.**
4540

ISSUE_TEMPLATE.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,15 @@ Please enter your response here (e.g. Ubuntu 18.04.2 LTS)
1616
You can find this information in $HESTIA/conf/hestia.conf by running the following command:
1717
`grep VERSION $HESTIA/conf/hestia.conf`
1818

19-
Please enter your response here (e.g. 1.00.0-190618)
19+
Please enter your response here (e.g. 1.0.1)
2020

2121
### Which branch are you using?
22-
Please enter your response here (e.g master, develop, etc.)
22+
Please enter your response here (e.g release, master, etc.)
23+
24+
### When did this issue occur? After a clean installation, or after an upgrade?
25+
Please enter your response here (e.g the feature stopped working after upgrading to the latest release)
26+
27+
**Note:** If you have upgraded from an older release on an existing server, please let us know which version was previously installed if at all possible.
2328

2429
### Which of the following web server configurations are you using?
2530
- Apache + Nginx (default)

README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
[Hestia Control Panel](https://www.hestiacp.com/)
22
==================================================
3-
**Current stable release:** Version 1.0.1, released on June 25th, 2019.
3+
**Current stable release:** Version 1.0.4, released on July 9th, 2019.
44

5-
**Next planned release:** Version 1.0.2 - minor bug fixes & improvements, currently available for testing in the **prerelease** branch. Please see "Installing development builds" for more information.
5+
**Wanted:** Beta testers!
6+
----------------------------
7+
We're currently looking for people who would be willing to help us test development builds as we continue work on the project. If you have previous experience in software testing or development, awesome! If not, now is a great chance to get started.
8+
9+
If you're interested, please send us an e-mail at info@hestiacp.com, or get started today by installing a development build (see the instructions below) on a test server and send us your feedback through GitHub Issues.
10+
11+
We look forward to your feedback, and as always we welcome all feedback and contributions!
12+
13+
Sincerely,<br>
14+
The Hestia Control Panel development team
615

716
What is Hestia Control Panel?
817
----------------------------
@@ -56,9 +65,9 @@ bash hst-install.sh -h
5665
```
5766
Alternatively, @gabizz has made available a command-line script generator at https://gabizz.github.io/hestiacp-scriptline-generator/ which allows you to easily generate the installation command via GUI.
5867

59-
Installing development builds
68+
Installing & testing development builds
6069
=============================
61-
In order to install a development build based on the latest published code, you must first have an existing installation of Hestia Control Panel available. If you do not have a server configured, please install the latest stable build using the instructions above before continuing.
70+
In order to install a development build based on the latest published code, you should first have an instance of Hestia Control Panel set up. If you do not have a server configured, please install the latest stable build using the instructions above before continuing.
6271

6372
**PLEASE NOTE: Development builds should not be installed on systems with live production data without understanding the potential risks involved.**
6473

bin/v-add-letsencrypt-domain

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,11 @@ else
411411
update_object_value 'mail' 'DOMAIN' "$root_domain" '$LETSENCRYPT' 'yes'
412412
fi
413413

414+
# Remove challenge folder if exist
415+
if [ ! -z "$well_known" ]; then
416+
rm -fr $well_known
417+
fi
418+
414419
#----------------------------------------------------------#
415420
# Hestia #
416421
#----------------------------------------------------------#

bin/v-add-mail-domain-ssl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ update_object_value 'mail' 'DOMAIN' "$domain" '$SSL' "yes"
8686

8787
# Restarting mail server
8888
$BIN/v-restart-mail $restart
89-
$BIN/v-restart-service $IMAP_SYSTEM $restart
9089
check_result $? "Mail restart failed" >/dev/null
9190

9291
# Restarting web server

bin/v-add-sys-theme

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ source $HESTIA/func/main.sh
1919
source $HESTIA/conf/hestia.conf
2020

2121
# Define themes repository URL format
22-
HESTIA_THEMES_REPO="$HESTIA_GIT_REPO/$RELEASE_BRANCH/themes"
22+
HESTIA_THEMES_REPO="$HESTIA_GIT_REPO/$RELEASE_BRANCH/install/deb/themes"
2323

2424
#----------------------------------------------------------#
2525
# Action #
@@ -48,7 +48,6 @@ fi
4848
# Check if theme name already exists as system theme
4949
if [ -e $HESTIA_THEMES/$theme.css ]; then
5050
echo "ERROR: System theme with the same name already exists: $theme."
51-
echo " To update system themes, run v-update-sys-themes."
5251
exit 1
5352
fi
5453

bin/v-change-dns-record

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ user=$1
1414
domain=$2
1515
domain_idn=$2
1616
id=$3
17-
dvalue=$(idn -t --quiet -u "$4" )
18-
priority=$5
19-
restart=$6
17+
record=$4
18+
type=$5
19+
dvalue=$(idn -t --quiet -u "$6" )
20+
priority=$7
21+
restart=$8
2022

2123
# Includes
2224
source $HESTIA/func/main.sh
@@ -33,8 +35,8 @@ format_domain_idn
3335
# Verifications #
3436
#----------------------------------------------------------#
3537

36-
check_args '4' "$#" 'USER DOMAIN ID VALUE [PRIORITY] [RESTART]'
37-
is_format_valid 'user' 'domain' 'id' 'dvalue'
38+
check_args '6' "$#" 'USER DOMAIN ID RECORD TYPE VALUE [PRIORITY] [RESTART]'
39+
is_format_valid 'user' 'domain' 'id' 'record' 'type' 'dvalue'
3840
is_system_enabled "$DNS_SYSTEM" 'DNS_SYSTEM'
3941
is_object_valid 'user' 'USER' "$user"
4042
is_object_unsuspended 'user' 'USER' "$user"
@@ -77,7 +79,7 @@ time=$(echo "$time_n_date" |cut -f 1 -d \ )
7779
date=$(echo "$time_n_date" |cut -f 2 -d \ )
7880

7981
# Adding record
80-
dns_rec="ID='$id' RECORD='$RECORD' TYPE='$TYPE' PRIORITY='$priority'"
82+
dns_rec="ID='$id' RECORD='$record' TYPE='$type' PRIORITY='$priority'"
8183
dns_rec="$dns_rec VALUE='$dvalue' SUSPENDED='no' TIME='$time' DATE='$date'"
8284
echo "$dns_rec" >> $USER_DATA/dns/$domain.conf
8385

bin/v-change-mail-domain-sslcert

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ add_mail_ssl_config
5757

5858
# Restarting mail server
5959
$BIN/v-restart-mail $restart
60-
$BIN/v-restart-service $IMAP_SYSTEM $restart
6160

6261
check_result $? "Mail restart failed" >/dev/null
6362

bin/v-change-sys-hestia-ssl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,7 @@ cp -f $ssl_dir/certificate.key $HESTIA/ssl/certificate.key
6161
# Restarting web server
6262
if [ "$restart" != 'no' ]; then
6363
kill -HUP $(cat /var/run/hestia-nginx.pid)
64-
$BIN/v-restart-mail
65-
if [ ! -z "$IMAP_SYSTEM" ]; then
66-
v-restart-service "$IMAP_SYSTEM"
67-
fi
64+
$BIN/v-restart-mail $restart
6865
fi
6966

7067
# Logging

0 commit comments

Comments
 (0)