dat-boi isn't really needed. Too experimental

This commit is contained in:
Bob Mottram 2018-03-08 20:59:39 +00:00
parent 3afa507b2e
commit d7b5a04b2c
1 changed files with 0 additions and 36 deletions

View File

@ -372,50 +372,14 @@ function mesh_install_dat {
cat <<EOF > "$rootdir/usr/bin/install_dat"
#!/bin/bash
npm install --arch=$NPM_ARCH -g dat
npm install --arch=$NPM_ARCH -g @garbados/dat-boi
EOF
chroot "$rootdir" /bin/chmod +x /usr/bin/install_dat
chroot "$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 {
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 {