* write env vars in init.d script
This commit is contained in:
parent
7789ddd49c
commit
c415db62bf
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user