@@ -240,12 +240,13 @@ RUN sed -i 's/$context->registerAlternativeLogin(OIDCLoginOption::class);/\/\/$c
# Add data-object-type to notification
#RUN sed -i 's/"data-id":e.notificationId,/"data-id":e.notificationId,"data-object-type":e.objectType,/' ${BASE_DIR}/apps/notifications/js/notifications-main.js
#Hide Archive/Unarchive feature in memories app
#RUN sed -i 's/{name:(0,O.Iu)("memories","Archive"),icon:Yo,callback:this.archiveSelection.bind(this),if:()=>!this.routeIsArchiveFolder()&&!this.routeIsAlbums},{name:(0,O.Iu)("memories","Unarchive"),icon:Ko,callback:this.archiveSelection.bind(this),if:()=>this.routeIsArchiveFolder()},//g' ${BASE_DIR}/custom_apps/memories/js/memories-main.js
RUN sudo grep-F-q'{name:(0,O.Iu)("memories","Archive"),icon:Yo,callback:this.archiveSelection.bind(this),if:()=>!this.routeIsArchiveFolder()&&!this.routeIsAlbums},{name:(0,O.Iu)("memories","Unarchive"),icon:Ko,callback:this.archiveSelection.bind(this),if:()=>this.routeIsArchiveFolder()},'${BASE_DIR}/custom_apps/memories/js/memories-main.js &&sed-i's/{name:(0,O.Iu)("memories","Archive"),icon:Yo,callback:this.archiveSelection.bind(this),if:()=>!this.routeIsArchiveFolder()&&!this.routeIsAlbums},{name:(0,O.Iu)("memories","Unarchive"),icon:Ko,callback:this.archiveSelection.bind(this),if:()=>this.routeIsArchiveFolder()},//g'${BASE_DIR}/custom_apps/memories/js/memories-main.js ||{echo"Pattern not found!";exit 1;}
RUN sed-i's/{name:(0,O.Iu)("memories","Archive"),icon:Yo,callback:this.archiveSelection.bind(this),if:()=>!this.routeIsArchiveFolder()&&!this.routeIsAlbums},{name:(0,O.Iu)("memories","Unarchive"),icon:Ko,callback:this.archiveSelection.bind(this),if:()=>this.routeIsArchiveFolder()},//g'${BASE_DIR}/custom_apps/memories/js/memories-main.js
RUN sed-i's/{name:"archive",icon:Yo,title:(0,O.Iu)("memories","Archive")},//g'${BASE_DIR}/custom_apps/memories/js/memories-main.js
# Rename Memories to Gallery
RUN sed-i's/<name>Memories<\/name>/<name>Gallery<\/name>/g'${BASE_DIR}/custom_apps/memories/appinfo/info.xml
sudo grep -q "abc" test.php && sudo sed -i 's/abc/xyz/' test.php || { echo "Pattern not found!"; exit 1; }
#RUN sed -i 's/<name>Memories<\/name>/<name>Gallery<\/name>/g' ${BASE_DIR}/custom_apps/memories/appinfo/info.xml
RUN grep-q"<name>Memories<\/name>/<name>Gallery<\/name>"${BASE_DIR}/custom_apps/memories/appinfo/info.xml &&sed-i's/<name>Memories<\/name>/<name>Gallery<\/name>/g'${BASE_DIR}/custom_apps/memories/appinfo/info.xml ||{echo"Pattern not found!";exit 1;}
RUN cd${BASE_DIR}/custom_apps/memories/js &&sed-i's/Memories has been/Gallery has been/g' memories-main.js &&sed-i's/Memories has been/Gallery has been/g' memories-admin.js
RUN cd${BASE_DIR}/custom_apps/memories/js &&sed-i's/Memories Settings/Gallery Settings/g' memories-main.js