From 818d102fd7257c9c665d67a37468fabb1b7370e2 Mon Sep 17 00:00:00 2001 From: tuapuikia Date: Tue, 13 Jun 2017 12:02:22 +0800 Subject: [PATCH 1/2] Allow snap app to access $HOME directory. New configuration will be created under /home/$user/snap/storjshare/... The plug interface will make sure the app are able to access the config file in user directory else user have to use --devmode when install the snap. --- snap/snapcraft.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 54d8a6f..c9d12bf 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -11,7 +11,7 @@ confinement: strict apps: storjshare: command: storjshare - plugs: [network, network-bind] + plugs: [network, network-bind, home] parts: storjshare-daemon: From a24f6296f1cd6edc83a5991979a13aefddade302 Mon Sep 17 00:00:00 2001 From: Felix Brucker Date: Sat, 17 Jun 2017 16:08:55 +0200 Subject: [PATCH 2/2] Add maxShardSize conversion --- script/farmer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/script/farmer.js b/script/farmer.js index bf84d36..e291906 100755 --- a/script/farmer.js +++ b/script/farmer.js @@ -20,6 +20,7 @@ let farmerState = { config.keyPair = new storj.KeyPair(config.networkPrivateKey); config.logger = new Logger(config.loggerVerbosity); +config.maxShardSize = config.maxShardSize ? bytes.parse(config.maxShardSize) : null; config.storageManager = new storj.StorageManager( new storj.EmbeddedStorageAdapter(config.storagePath), {