dat-boi isn't really needed. Too experimental
This commit is contained in:
parent
3afa507b2e
commit
d7b5a04b2c
|
@ -372,50 +372,14 @@ function mesh_install_dat {
|
||||||
cat <<EOF > "$rootdir/usr/bin/install_dat"
|
cat <<EOF > "$rootdir/usr/bin/install_dat"
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
npm install --arch=$NPM_ARCH -g dat
|
npm install --arch=$NPM_ARCH -g dat
|
||||||
npm install --arch=$NPM_ARCH -g @garbados/dat-boi
|
|
||||||
EOF
|
EOF
|
||||||
chroot "$rootdir" /bin/chmod +x /usr/bin/install_dat
|
chroot "$rootdir" /bin/chmod +x /usr/bin/install_dat
|
||||||
chroot "$rootdir" /usr/bin/install_dat
|
chroot "$rootdir" /usr/bin/install_dat
|
||||||
rm "$rootdir/usr/bin/install_dat"
|
rm "$rootdir/usr/bin/install_dat"
|
||||||
|
|
||||||
{ echo '[Unit]';
|
|
||||||
echo 'Description=DAT-boi';
|
|
||||||
echo 'After=syslog.target';
|
|
||||||
echo 'After=network.target';
|
|
||||||
echo '';
|
|
||||||
echo '[Service]';
|
|
||||||
echo 'Type=simple';
|
|
||||||
echo 'User=root';
|
|
||||||
echo 'Group=root';
|
|
||||||
echo 'ExecStart=/usr/local/bin/dat-boi';
|
|
||||||
echo 'Restart=always';
|
|
||||||
echo '';
|
|
||||||
echo '[Install]';
|
|
||||||
echo 'WantedBy=multi-user.target'; } > "$rootdir/etc/systemd/system/dat-boi.service"
|
|
||||||
chmod +x "$rootdir/etc/systemd/system/dat-boi.service"
|
|
||||||
chroot "$rootdir" systemctl enable dat-boi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function install_dat {
|
function install_dat {
|
||||||
npm install -g dat
|
npm install -g dat
|
||||||
npm install -g @garbados/dat-boi
|
|
||||||
|
|
||||||
{ echo '[Unit]';
|
|
||||||
echo 'Description=DAT-boi';
|
|
||||||
echo 'After=syslog.target';
|
|
||||||
echo 'After=network.target';
|
|
||||||
echo '';
|
|
||||||
echo '[Service]';
|
|
||||||
echo 'Type=simple';
|
|
||||||
echo 'User=root';
|
|
||||||
echo 'Group=root';
|
|
||||||
echo 'ExecStart=/usr/local/bin/dat-boi';
|
|
||||||
echo 'Restart=always';
|
|
||||||
echo '';
|
|
||||||
echo '[Install]';
|
|
||||||
echo 'WantedBy=multi-user.target'; } > /etc/systemd/system/dat-boi.service
|
|
||||||
chmod +x /etc/systemd/system/dat-boi.service
|
|
||||||
systemctl enable dat-boi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function mesh_install_scuttlebot {
|
function mesh_install_scuttlebot {
|
||||||
|
|
Loading…
Reference in New Issue