mirror of
https://github.com/YunoHost/yunohost-debootstrap.git
synced 2024-09-03 20:06:21 +02:00
[fix] Remove list missing
This commit is contained in:
parent
5d4f2fce23
commit
b94d76e7f5
1 changed files with 5 additions and 6 deletions
11
yunohost
11
yunohost
|
@ -1,7 +1,5 @@
|
||||||
SUITE="stretch"
|
SUITE="stretch"
|
||||||
|
|
||||||
ls -l /home/
|
|
||||||
|
|
||||||
ls -l /usr/share/debootstrap/scripts/stretch
|
ls -l /usr/share/debootstrap/scripts/stretch
|
||||||
|
|
||||||
. /usr/share/debootstrap/scripts/stretch
|
. /usr/share/debootstrap/scripts/stretch
|
||||||
|
@ -15,19 +13,20 @@ save_function() {
|
||||||
save_function second_stage_install origin_second_stage_install
|
save_function second_stage_install origin_second_stage_install
|
||||||
|
|
||||||
second_stage_install() {
|
second_stage_install() {
|
||||||
SUITE="stretch"
|
SUITE="stretch"
|
||||||
origin_second_stage_install $@
|
origin_second_stage_install $@
|
||||||
|
|
||||||
echo "deb http://ftp.fr.debian.org/debian stretch main" > $TARGET/etc/apt/sources.list.d/wtf.list
|
echo "deb http://ftp.fr.debian.org/debian stretch main" > $TARGET/etc/apt/sources.list.d/debian.list
|
||||||
in_target apt update
|
in_target apt update
|
||||||
in_target apt install -y wget debhelper
|
in_target apt install -y wget debhelper
|
||||||
in_target wget -O /root/install_yunohost https://install.yunohost.org
|
in_target wget -O /root/install_yunohost https://install.yunohost.org
|
||||||
in_target chmod a+x /root/install_yunohost
|
in_target chmod a+x /root/install_yunohost
|
||||||
mv "$TARGET/sbin/start-stop-daemon" "$TARGET/sbin/start-stop-daemon.REAL"
|
mv "$TARGET/sbin/start-stop-daemon" "$TARGET/sbin/start-stop-daemon.REAL"
|
||||||
echo "#!/bin/sh
|
echo "#!/bin/sh
|
||||||
echo
|
echo
|
||||||
echo \"Warning: Fake start-stop-daemon called, doing nothing\"" > "$TARGET/sbin/start-stop-daemon"
|
echo \"Warning: Fake start-stop-daemon called, doing nothing\"" > "$TARGET/sbin/start-stop-daemon"
|
||||||
chmod 755 "$TARGET/sbin/start-stop-daemon"
|
chmod 755 "$TARGET/sbin/start-stop-daemon"
|
||||||
in_target /root/install_yunohost -a -d stable
|
in_target /root/install_yunohost -a -d stable
|
||||||
mv "$TARGET/sbin/start-stop-daemon.REAL" "$TARGET/sbin/start-stop-daemon"
|
mv "$TARGET/sbin/start-stop-daemon.REAL" "$TARGET/sbin/start-stop-daemon"
|
||||||
|
rm -f $TARGET/etc/apt/sources.list.d/debian.list
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue