Beispiel #1
0
        interface = "GUI"

    files.write("/proc/info/ip", ip)
    files.write("/proc/info/os", osname)
    files.write("/proc/info/arch", arch)
    files.write("/proc/info/os_su", os_user)
    files.write("/proc/info/os_host", os_user)
    files.write("/proc/info/inter", interface)
    files.write("/proc/info/tz", tz)
    files.write("/proc/info/sweek", sweek)
    files.write("/proc/info/boot", kernel_file)
    files.write('/proc/info/py', py)

## @core/dirs ##

fhs = control.read_list("/etc/fhs")
for i in fhs:
    if not files.isdir(i) and not files.isfile(i):
        files.mkdir(i)

## @core/welcome ##

if argv[0] == "kernel":
    print()
    print("Welcome to " + distro_name + " " + distro_version + " (" +
          distro_code + ") cloud software.")
    print()

## @core/issue ##

if (argv[0] == "kernel") and files.isfile("/etc/issue"):
Beispiel #2
0
    pack.clean()

elif option == "rm":
    if files.isfile("/app/cache/lock"):
        colors.show("paye", "fail", "cache has already locked.")
        sys.exit(0)
    else:
        files.create("/app/cache/lock")

    if sys.argv[2] == []:
        colors.show("paye", "fail", "no inputs.")
        sys.exit(0)

    package = sys.argv[2:]

    list = control.read_list('/etc/paye/permanetly_applications')

    if not package[1:] == []:
        strv = ''
        for i in package:
            strv += ',' + i

    for i in package:
        if not i in list:
            print(f"Uninstalling {i} package ... ")
            pack.uninstall(i.lower())
        else:
            colors.show(
                'paye', 'fail',
                f"{i}: is a permanetly application that cannot be removed.")