What's new

Closed How to make autoscript paturo mga boss

Status
Not open for further replies.

IEPH-Raf

Forum Veteran
Joined
Mar 25, 2018
Posts
1,929
Reaction
1,964
Points
676
Age
23
Mga boss paturo naman kung pano gumawa ng autoscript para sa template
Salamat sa magtuturo :)
 
ang file extension niya is .sh

How to make?

upload your theme to github or dropbox or kung saan pwede si wget
create new file <anyname>.sh

lagay mo sa file

Code:
#!/bin/bash
echo "Removing Old Template"
rm -rf /home/vps/public_html/asset
rm -rf /home/vps/public_html/view

echo "Installing <Name of Template> Theme"
cd /tmp
wget https://raw.githubusercontent.com/example/example-template/master/scripts/<autoscriptname>.sh
mv asset /home/vps/public_html
mv view /home/vps/public_html

echo "Successfully Installed <ThemeName>, Enjoy!"

change mo yung <> ...
thats it
 
ang file extension niya is .sh

How to make?

upload your theme to github or dropbox or kung saan pwede si wget
create new file <anyname>.sh

lagay mo sa file

Code:
#!/bin/bash
echo "Removing Old Template"
rm -rf /home/vps/public_html/asset
rm -rf /home/vps/public_html/view

echo "Installing <Name of Template> Theme"
cd /tmp
wget https://raw.githubusercontent.com/example/example-template/master/scripts/<autoscriptname>.sh
mv asset /home/vps/public_html
mv view /home/vps/public_html

echo "Successfully Installed <ThemeName>, Enjoy!"

change mo yung <> ...
thats it
Yun maraming salamat paps isa kang alamat
 
use google paps. kung my idea ka na sa bash mas madali na yan. kung medyo beginner ka pa explore mo muna
 
Status
Not open for further replies.

Similar threads

Back
Top