Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
e9db1d41a5 | |||
4281c9f90a | |||
710a0048f0 |
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# matter-base | Matterlinux Release Archive Build Script
|
||||
# Copyright (C) 2023 Matterlinux
|
||||
# MatterLinux 2023-2024 (https://matterlinux.xyz)
|
||||
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@ -51,6 +51,10 @@ check_ret() {
|
||||
#################
|
||||
## main script ##
|
||||
#################
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
error "You should run this script as root"
|
||||
fi
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
error "Please specify a name for the archive"
|
||||
fi
|
||||
@ -80,7 +84,7 @@ pushd $TARGET > /dev/null
|
||||
ln -sf usr/sbin sbin
|
||||
|
||||
cat > etc/passwd << "EOF"
|
||||
root:x:0:0:root:/root:/bin/bash
|
||||
root:!:0:0:root:/root:/bin/bash
|
||||
bin:x:1:1:bin:/dev/null:/usr/bin/false
|
||||
daemon:x:6:6:Daemon User:/dev/null:/usr/bin/false
|
||||
messagebus:x:18:18:D-Bus Message Daemon User:/run/dbus:/usr/bin/false
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# matter-chroot | Matterlinux Chroot Script
|
||||
# Copyright (C) 2023 Matterlinux
|
||||
# MatterLinux 2023-2024 (https://matterlinux.xyz)
|
||||
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# matter-iso | MatterLinux ISO Build Script
|
||||
# Copyright (C) 2023 Matterlinux
|
||||
# MatterLinux 2023-2024 (https://matterlinux.xyz)
|
||||
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@ -99,6 +99,10 @@ check_iso_vars() {
|
||||
#################
|
||||
## main script ##
|
||||
#################
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
error "You should run this script as root"
|
||||
fi
|
||||
|
||||
if [ $# -ne 2 ]; then
|
||||
error "Please specify a release archive and a config directory"
|
||||
fi
|
||||
@ -146,6 +150,7 @@ set_indent
|
||||
info "Removing $e"
|
||||
rm -rf "$TMPDIR/$e"
|
||||
done
|
||||
rm -rf "$TMPDIR/.git"
|
||||
unset_indent
|
||||
|
||||
info "Extracting release archive"
|
||||
|
@ -1,5 +1,21 @@
|
||||
#!/bin/python3
|
||||
|
||||
# matter-mirror | MatterLinux Repo Mirror Tool
|
||||
# MatterLinux 2023-2024 (https://matterlinux.xyz)
|
||||
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
from os import path, chdir, listdir, remove
|
||||
from typing import List
|
||||
import requests as req
|
||||
|
Reference in New Issue
Block a user