* write env vars in init.d script

This commit is contained in:
6543 2018-02-25 18:03:55 +01:00
parent 7789ddd49c
commit c415db62bf

View File

@ -27,8 +27,8 @@ adduser ipfs --disabled-password --disabled-login --home $DATA_DIR --system
cp ipfs.initd /etc/init.d/ipfs cp ipfs.initd /etc/init.d/ipfs
sed -i "s/#GID#/`id -g ipfs`/g" /etc/init.d/ipfs sed -i "s/#GID#/`id -g ipfs`/g" /etc/init.d/ipfs
sed -i "s/#UID#/`id -u ipfs`/g" /etc/init.d/ipfs sed -i "s/#UID#/`id -u ipfs`/g" /etc/init.d/ipfs
sed -i "s/#DATA#/$DATA_DIR/g" /etc/init.d/ipfs sed -i 's|#DATA#|'${DATA_DIR}'|g' /etc/init.d/ipfs
sed -i "s/#AIM#/$AIM/g" /etc/init.d/ipfs sed -i 's|#AIM#|'${AIM}'|g' /etc/init.d/ipfs
chmod +x /etc/init.d/ipfs chmod +x /etc/init.d/ipfs
update-rc.d ipfs defaults update-rc.d ipfs defaults