Exit with error if any of the setup steps fail

This commit is contained in:
Sunil Mohan Adapa 2016-08-28 00:28:19 +05:30 committed by James Valleroy
parent 8bf797d17c
commit b69720e0d4
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
3 changed files with 7 additions and 0 deletions

View File

@ -15,6 +15,8 @@ All notable changes to this project will be documented in this file.
### Changed ### Changed
- dynamicdns, transmission, upgrades: Allowed Plinth to run as non-root. - dynamicdns, transmission, upgrades: Allowed Plinth to run as non-root.
- xmpp: Switched to using ruamel.yaml to modify ejabberd config.
- Exit with error if any of the setup steps fail.
## [0.10.0] - 2016-08-12 ## [0.10.0] - 2016-08-12
### Added ### Added

View File

@ -16,6 +16,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# #
# Exit with an error code on any failure
set -e
# Enable tracing to see the commands in # Enable tracing to see the commands in
# /var/log/freedombox-first-run.log # /var/log/freedombox-first-run.log
set -x set -x

View File

@ -16,6 +16,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# #
set -e
# Enable Apache modules required for Plinth. # Enable Apache modules required for Plinth.
echo "Configuring Apache for Plinth..." echo "Configuring Apache for Plinth..."