Don't try to install global packages as a local user
This commit is contained in:
parent
93801c7331
commit
12c690abd5
|
@ -395,12 +395,6 @@ cd /etc/scuttlebot || exit 1
|
|||
if ! npm install --arch=$NPM_ARCH scuttlebot@${SCUTTLEBOT_VERSION}; then
|
||||
exit 2
|
||||
fi
|
||||
if ! npm install --arch=$NPM_ARCH -g git-ssb; then
|
||||
exit 3
|
||||
fi
|
||||
if ! npm install --arch=$NPM_ARCH -g git-remote-ssb; then
|
||||
exit 4
|
||||
fi
|
||||
exit 0
|
||||
EOF
|
||||
chroot "$rootdir" /bin/chmod +x /usr/bin/install_scuttlebot
|
||||
|
@ -412,6 +406,20 @@ EOF
|
|||
exit 528253
|
||||
fi
|
||||
|
||||
cat <<EOF > "$rootdir/usr/bin/install_git_ssb"
|
||||
#!/bin/bash
|
||||
if ! npm install --arch=$NPM_ARCH -g git-ssb; then
|
||||
exit 1
|
||||
fi
|
||||
if ! npm install --arch=$NPM_ARCH -g git-remote-ssb; then
|
||||
exit 2
|
||||
fi
|
||||
exit 0
|
||||
EOF
|
||||
chroot "$rootdir" /bin/chmod +x /usr/bin/install_git_ssb
|
||||
chroot "$rootdir" /usr/bin/install_git_ssb
|
||||
rm "$rootdir/usr/bin/install_git_ssb"
|
||||
|
||||
# daemon
|
||||
{ echo '[Unit]';
|
||||
echo 'Description=Scuttlebot (messaging system)';
|
||||
|
|
Loading…
Reference in New Issue