Corrected prod copy
Signed-off-by: debianpepper <peppermintosteam@proton.me>
This commit is contained in:
parent
3c6e43ea19
commit
636f43fea3
|
@ -134,14 +134,14 @@ def copy_iso_file_nightly_dev64():
|
||||||
def copy_iso_file_prod_deb64():
|
def copy_iso_file_prod_deb64():
|
||||||
""" Copy the pro nightly and prep it for production push"""
|
""" Copy the pro nightly and prep it for production push"""
|
||||||
today = str(date.today())
|
today = str(date.today())
|
||||||
nstring = '/var/www/html/nightly/deb64/'
|
nstring = '/var/www/html/nightly/deb64'
|
||||||
nightly_folder = Path( nstring ).expanduser()
|
nightly_folder = Path( nstring ).expanduser()
|
||||||
string_nightly = str(nightly_folder)
|
string_nightly = str(nightly_folder)
|
||||||
pstring= '/var/www/html/prod/'
|
pstring= '/var/www/html/prod'
|
||||||
production_folder = Path( pstring ).expanduser()
|
production_folder = Path( pstring ).expanduser()
|
||||||
string_production = str(production_folder)
|
string_production = str(production_folder)
|
||||||
src_iso = string_nightly + 'PeppermintOS-Debian_64_' + today + '.iso'
|
src_iso = string_nightly + '/PeppermintOS-Debian_64_' + today + '.iso'
|
||||||
rdes = string_nightly + 'PeppermintOS-Debian-64.iso'
|
rdes = string_nightly + '/PeppermintOS-Debian-64.iso'
|
||||||
des_iso = pstring
|
des_iso = pstring
|
||||||
os.rename(src_iso, rdes)
|
os.rename(src_iso, rdes)
|
||||||
shutil.copy(rdes, des_iso)
|
shutil.copy(rdes, des_iso)
|
||||||
|
|
Loading…
Reference in New Issue