Skip to content
Snippets Groups Projects
Verified Commit 79ad0d3a authored by Michal Hrusecky's avatar Michal Hrusecky :mouse:
Browse files

srv.init: Fix notification creation s/-n/-s/

Correct parametr for severity is -s not -n. Fixing that.
parent 10f6d654
1 merge request!26srv.init: Fix notification creation s/-n/-s/
Pipeline #111325 failed with stage
in 40 seconds
......@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
## [0.10.2] - 2023-03-23
### Fixed
- init: Fix the notification on error
## [0.10.1] - 2022-10-18
### Fixed
- init: Fix the condition so router wouldn't end up with tmpfs mounted on top of
......
......@@ -8,7 +8,7 @@ status() {
}
die() {
create_notification -n error "$1"
create_notification -s error "$1"
if ! grep -q '^[^[:blank:]]\+[[:blank:]]\+/srv[[:blank:]]' /proc/mounts && [ -d /srv ]; then
mount -t tmpfs -o size=50M none /srv
fi
......@@ -50,7 +50,7 @@ start() {
if [ "$(blkid "$DEV" -s TYPE -o value)" = ext4 ]; then
mount -t ext4 -o noatime "$DEV" /srv \
|| die "Can't mount $DEV as /srv."
create_notification -n error "Your srv is ext4, you should convert to btrfs to enjoy all features."
create_notification -s error "Your srv is ext4, you should convert to btrfs to enjoy all features."
else
local subvol
config_get subvol srv subvolume '@'
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment