Commit 2c7fc444 authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Fixed bug in handling presturtup scripts.

parent 250edebe
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -35,7 +35,6 @@ prestartup_scripts_path='/prestartup'
def sorted_ls(path):
    mtime = lambda f: os.stat(os.path.join(path, f)).st_mtime
    file_list = list(sorted(os.listdir(path), key=mtime))
    file_list.reverse()
    return file_list

for item in sorted_ls(prestartup_scripts_path):
+2 −1
Original line number Diff line number Diff line
@@ -31,3 +31,4 @@ RUN chown -R slurmtestuser:slurmtestuser /home/slurmtestuser

# Add prestartup
COPY prestartup_slurmbase.sh /prestartup/
RUN touch -m /prestartup/prestartup_slurmbase.sh
+1 −0
Original line number Diff line number Diff line
@@ -9,3 +9,4 @@ COPY test.sh /rosetta

# Add prestartup
COPY prestartup_slurmclustermaster.sh /prestartup/
RUN touch -m /prestartup/prestartup_slurmclustermaster.sh
+1 −0
Original line number Diff line number Diff line
@@ -78,6 +78,7 @@ COPY supervisord_dregistrytunnel.conf /etc/supervisor/conf.d/
#------------------------------

COPY prestartup_webapp.sh /prestartup/
RUN touch -m /prestartup/prestartup_webapp.sh