shopt needs to be run using bash

master
cynic 3 years ago
parent 30a9c83dd7
commit 43d692dbbc
  1. 4
      tools/init.py

@ -26,8 +26,8 @@ subprocess.run(["mkdir", "/var/cathedral"])
subprocess.run(["git", "clone", "https://github.com/kurisufriend/cathedral", "/var/cathedral"]) subprocess.run(["git", "clone", "https://github.com/kurisufriend/cathedral", "/var/cathedral"])
# * copy new template files to /etc/skel # * copy new template files to /etc/skel
subprocess.run(["shopt", "-s", "dotglob"]) subprocess.run("shopt -s dotglob", shell=True, executable="/bin/bash")
subprocess.run("cp -r /var/cathedral/tools/skel/* /etc/skel/", shell=True) subprocess.run("cp -r /var/cathedral/tools/skel/* /etc/skel/", shell=True, executable="/bin/bash")
# * create new cathedral user # * create new cathedral user
subprocess.run(["useradd", "-c", "cathedral", "-M", "cathedral"]) subprocess.run(["useradd", "-c", "cathedral", "-M", "cathedral"])

Loading…
Cancel
Save