18 lines
368 B
Python
18 lines
368 B
Python
#!/usr/bin/python3 -u
|
|
|
|
# A script for install pzoo user
|
|
|
|
import subprocess
|
|
import argparse
|
|
import re
|
|
import os
|
|
import shutil
|
|
import pwd
|
|
from subprocess import call
|
|
from pathlib import Path
|
|
from time import sleep
|
|
import distro
|
|
|
|
if call("sudo useradd -m -s /bin/bash %s" % args.user, shell=True) > 0:
|
|
print('Error, cannot install psutil...')
|
|
exit(1)
|