This repository was archived by the owner on Dec 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuninstall.sh
executable file
·19 lines (15 loc) · 1.58 KB
/
uninstall.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# return to original bootstrap.min.css
mv /home/clp/htdocs/app/files/public/assets/css/bootstrap.min.css.bak /home/clp/htdocs/app/files/public/assets/css/bootstrap.min.css
find /home/clp/htdocs/app/files/templates/Admin/layout.html.twig -type f -exec sed -i 's/\/admin\/style-dark\.css/\/admin\/style\.css/g' {} \;
find /home/clp/htdocs/app/files/templates/Admin/layout.html.twig -type f -exec sed -i 's/\/css\/style-dark\.css/\/css\/style\.css/g' {} \;
find /home/clp/htdocs/app/files/templates/Admin/Partial/header.html.twig -type f -exec sed -i 's/logo-dark\.svg/logo\.svg/g' {} \;
find /home/clp/htdocs/app/files/templates/Frontend/Login/layout.html.twig -type f -exec sed -i 's/\/frontend\/login-dark\.css/\/frontend\/login\.css/g' {} \;
find /home/clp/htdocs/app/files/templates/Frontend/Login/layout.html.twig -type f -exec sed -i 's/\/css\/style-dark\.css/\/css\/style\.css/g' {} \;
find /home/clp/htdocs/app/files/templates/Frontend/layout.html.twig -type f -exec sed -i 's/\/css\/style-dark\.css/\/css\/style\.css/g' {} \;
find /home/clp/htdocs/app/files/templates/Frontend/Partial/header.html.twig -type f -exec sed -i 's/logo-dark\.svg/logo\.svg/g' {} \;
find /home/clp/htdocs/app/files/templates/Frontend/Dashboard/index.html.twig -type f -exec sed -i 's/dashboard-dark\.css/dashboard\.css/g' {} \;
find /home/clp/htdocs/app/files/templates/Frontend/Dashboard/index.html.twig -type f -exec sed -i 's/chart\: { backgroundColor: \"#353535\",/chart\: {/g' {} \;
# removing cache
rm /home/clp/htdocs/app/files/var/cache/prod/twig/* -rf
# chown files
chown clp /home/clp/htdocs/app/files/public/assets/css/*