change order (inid script is installet after ipfs init)
This commit is contained in:
parent
4a3674604c
commit
f9ab6798bf
26
install
26
install
@ -21,19 +21,6 @@ USER=ipfs
|
||||
adduser $USER --disabled-password --disabled-login --home $DATA_DIR --system
|
||||
|
||||
|
||||
#################
|
||||
## init skript ##
|
||||
#################
|
||||
|
||||
cp ipfs.initd /etc/init.d/ipfs
|
||||
sed -i "s/#GID#/`id -g $USER`/g" /etc/init.d/ipfs
|
||||
sed -i "s/#UID#/`id -u $USER`/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
|
||||
chmod +x /etc/init.d/ipfs
|
||||
update-rc.d ipfs defaults
|
||||
|
||||
|
||||
##################
|
||||
## install ipfs ##
|
||||
##################
|
||||
@ -76,3 +63,16 @@ sed -i 's/127.0.0.1/0.0.0.0/g' $DATA_DIR/config
|
||||
#go back and delete temp
|
||||
cd -
|
||||
rm -r `cd -`
|
||||
|
||||
|
||||
#################
|
||||
## init skript ##
|
||||
#################
|
||||
|
||||
cp ipfs.initd /etc/init.d/ipfs
|
||||
sed -i "s/#GID#/`id -g $USER`/g" /etc/init.d/ipfs
|
||||
sed -i "s/#UID#/`id -u $USER`/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
|
||||
chmod +x /etc/init.d/ipfs
|
||||
update-rc.d ipfs defaults
|
||||
|
Loading…
Reference in New Issue
Block a user