From 69fc73a14df53e17367f828114ccaeb0412651b1 Mon Sep 17 00:00:00 2001 From: Joey Korkames Date: Tue, 28 Jun 2016 16:36:04 -0700 Subject: [PATCH] fix path typo in debian/postinstall (#691) Missing slash causes dpkg -i to fail: --- Setting up shadowsocks-libev (2.4.7-1) ... sed: can't read etc/shadowsocks-libev/config.json: No such file or directory dpkg: error processing shadowsocks-libev (--install): subprocess installed post-installation script returned error exit status 2 --- debian/shadowsocks-libev.postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/shadowsocks-libev.postinst b/debian/shadowsocks-libev.postinst index f75192d5..92b240e9 100755 --- a/debian/shadowsocks-libev.postinst +++ b/debian/shadowsocks-libev.postinst @@ -16,7 +16,7 @@ case "$1" in esac passwd=$(apg -n 1 -M ncl) -sed -i "s/barfoo!/$passwd/" etc/shadowsocks-libev/config.json +sed -i "s/barfoo!/$passwd/" /etc/shadowsocks-libev/config.json #DEBHELPER#