Add update_dir to makefile

This commit is contained in:
Clortox 2021-03-08 22:13:24 -05:00
parent 53c3f1f5ed
commit bdc7b196ef
2 changed files with 9 additions and 1 deletions

View File

@ -8,6 +8,9 @@ INSTALL_PATH = /var/www/html/
update_config : var/config.php update_config : var/config.php
cp var/config.php $(INSTALL_PATH)/var/config.php cp var/config.php $(INSTALL_PATH)/var/config.php
update_dir :
cp -r dir $(INSTALL_PATH)
install: var/config.php install: var/config.php
@echo "Installing to $(INSTALL_PATH)" @echo "Installing to $(INSTALL_PATH)"
@echo "Everything there will be deleted" @echo "Everything there will be deleted"

View File

@ -29,8 +29,13 @@ After you are done setting up your configuration file, run:
make install make install
``` ```
This will install the website and should now be accessible. If at any time you wish to update the config file, edit the config file in this folder, then run This will install the website and should now be accessible. If at any time you wish to update the config file, edit the config file in this folder, then run:
```bash ```bash
make update_config make update_config
``` ```
If you would like to update the dir folder with new symlinks that you have added, you can do so automatically by running:
```bash
make update_dir
```