summaryrefslogtreecommitdiff
path: root/snap
diff options
context:
space:
mode:
authorluccioman <luccioman@users.noreply.github.com>2018-12-01 10:59:13 +0100
committerluccioman <luccioman@users.noreply.github.com>2018-12-01 11:04:09 +0100
commitdbacff20442dff642b4f1529d1097593dec96e39 (patch)
tree2f4e6f58612a1b1a80da8a2937e5165f083ecc38 /snap
parent3b383bff63ae8742a2425633853e7eac3d2b5795 (diff)
Added a command to set the admin password from the Snap package
Fixes issue #254
Diffstat (limited to 'snap')
-rw-r--r--snap/snapcraft.yaml12
1 files changed, 11 insertions, 1 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index 525f70447..994ae71ea 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -19,13 +19,23 @@ apps:
# Interfaces authorizations requirements
# network-bind - to allow acting as an HTTP server and client
# desktop - to launch the default desktop navigator when starting (with xdg-open command) - not strictly necessary
- # home - not strictly necessary but can be conventient for some features to have read/write access to files outside the snap data folders, notably
+ # home - not strictly necessary but can be convenient for some features to have read/write access to files outside the snap data folders, notably
# - to index files in Intranet mode
# - for index, dump, vocabulary import/export features
plugs: [network-bind, desktop, home]
+ passwd: # set the YaCy administrator password
+ environment:
+ YACY_DATA_PATH: "$SNAP_USER_DATA/DATA"
+ command: sh "$SNAP/yacy/bin/passwd.sh"
+ # Interfaces authorizations requirements
+ # network - to allow requesting the ConfigAccounts_p HTTP API when the server is running
+ plugs: [network]
parts:
yacy-search:
+ # Additional packages
+ # curl : needed by the passwd.sh script to call a YaCy API when the server is running
+ stage-packages: [curl]
plugin: ant
ant-build-targets:
- clean