Just cloned your repository, configured config and all necessary files.
Started a test with dehydrated -f /etc/dehydrated/config -c and got the following
root@domain:/etc/dehydrated# /opt/dehydrated/dehydrated -f /etc/dehydrated/config -c
# INFO: Using main config file /etc/dehydrated/config
# INFO: Using additional config file /etc/dehydrated/hook.sh
/etc/dehydrated/hook.sh: Zeile 77: $1 ist nicht gesetzt.
So it seems that the script is called without parameter and got this exception. So I added in my pull request a simple if-else-statement!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/dehydrated-io/dehydrated/pull/311
**Author:** [@a5a351e7](https://github.com/a5a351e7)
**Created:** 11/24/2016
**Status:** ❌ Closed
**Base:** `master` ← **Head:** `patch-1`
---
### 📝 Commits (1)
- [`85458c4`](https://github.com/dehydrated-io/dehydrated/commit/85458c4eba25daf70f852eb38750fe472b7d857f) Fixing "$1 not set" for HANDLER var
### 📊 Changes
**1 file changed** (+4 additions, -2 deletions)
<details>
<summary>View changed files</summary>
📝 `docs/examples/hook.sh` (+4 -2)
</details>
### 📄 Description
Just cloned your repository, configured config and all necessary files.
Started a test with `dehydrated -f /etc/dehydrated/config -c` and got the following
```
root@domain:/etc/dehydrated# /opt/dehydrated/dehydrated -f /etc/dehydrated/config -c
# INFO: Using main config file /etc/dehydrated/config
# INFO: Using additional config file /etc/dehydrated/hook.sh
/etc/dehydrated/hook.sh: Zeile 77: $1 ist nicht gesetzt.
```
So it seems that the script is called without parameter and got this exception. So I added in my pull request a simple if-else-statement!
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/dehydrated-io/dehydrated/pull/311
Author: @a5a351e7
Created: 11/24/2016
Status: ❌ Closed
Base:
master← Head:patch-1📝 Commits (1)
85458c4Fixing "$1 not set" for HANDLER var📊 Changes
1 file changed (+4 additions, -2 deletions)
View changed files
📝
docs/examples/hook.sh(+4 -2)📄 Description
Just cloned your repository, configured config and all necessary files.
Started a test with
dehydrated -f /etc/dehydrated/config -cand got the followingSo it seems that the script is called without parameter and got this exception. So I added in my pull request a simple if-else-statement!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.